A web-based scene/slide creator built with Vite and React that allows you to create engaging video presentations. Create slides and scenes manually by adding text and images, or let AI automatically generate scenes for you using Langflow integration.
- Prerequisites
- Installation
- Configuration
- Running the Development Server
- Building for Production
- Linting
- Learn More
- Deploying
Before you begin, ensure you have met the following requirements:
- Node.js: Install the latest version from the Node.js Official Website.
- Package Manager: Choose one of the following for managing dependencies:
Follow these steps to set up the project locally:
-
Clone the Repository
git clone https://github.com/misbahsy/txt-to-video cd video-editor
-
Install Dependencies
Choose your preferred package manager to install the required dependencies:
# Using npm npm install # Using Yarn yarn install # Using pnpm pnpm install # Using Bun bun install
- Visit Astra Datastax Langflow to create a free Langflow account.
- Follow the registration process and verify your email if required.
- After logging in, navigate to the Langflow dashboard.
- Generate or retrieve your API Token.
- Note down the Base Path for the Langflow API.
Create a .env
file in the root directory of the project and add the following variables:
VITE_ASTRA_LANGFLOW_TOKEN=AstraCS:xxxx
VITE_LANGFLOW_BASE_PATH="/api/langflow/lf/xxxxxx-xxxx-xxx-xxxx/api/v1/run/flow-id"
Note: Ensure that VITE_LANGFLOW_BASE_PATH starts with /api/langflow/... which is available from </>API tab at the bottom right of the Langflow UI. Also make sure .env
is not committed to version control to keep your API tokens secure.
You can use the predefined flow located at src/utils/langflow_flow/Slides with images.json
. Simply drag and drop this flow into the Langflow dashboard to get started.
Start the development server using your chosen package manager:
# Using npm
npm run dev
# Using Yarn
yarn dev
# Using pnpm
pnpm dev
# Using Bun
bun dev
- Open http://localhost:3000 in your browser to view the application.
- The app will automatically reload if you make changes to the code.
To create an optimized production build, run the following command with your preferred package manager:
# Using npm
npm run build
# Using Yarn
yarn build
# Using pnpm
pnpm build
# Using Bun
bun build
The build artifacts will be stored in the dist/
directory.
Ensure code quality and consistency by running the linter:
# Using npm
npm run lint
# Using Yarn
yarn lint
# Using pnpm
pnpm lint
# Using Bun
bun lint
The linter checks for syntax errors and enforces coding standards based on the .eslintrc.json
configuration.
To learn more about the technologies used in this project, check out the following resources:
- Vite Documentation
- React Documentation
- Langflow Documentation
- TypeScript Documentation
- Tailwind CSS Documentation
Deploy your application using your preferred hosting platform. For optimal performance and ease of deployment, consider using platforms like Vercel or Netlify.
For more details on deploying with Vite, refer to the Vite Deployment Guide.