This project is a frontend for generating short videos using AI. It allows users to create new videos, preview them, and export them. The application uses Next.js
, TailwindCSS
, shadcn
, remotion
, Axios
, and integrates with an API for content generation and video rendering.
- Features
- Requirements
- Installation
- Environment Variables
- Development
- Building for Production
- Dependencies
- Usage
- Video Creation: Users can input a topic, select an image style, and define the duration for their video.
- Video Preview: After generating a video, users can preview the video with generated captions and images.
- Export Video: Users can export the generated video once the rendering is completed.
- Dark/Light Theme: The application supports dark and light modes.
- Node.js (v22)
- API for video generation (Ensure your environment variables are correctly configured on backend/appsettings.Development.json)
- Clone the repository to your local machine:
git clone https://github.com/RianNegreiros/AiShortsVideosGenerator.git
cd frontend
- Install dependencies:
npm install
Before starting the app, make sure you configure the following environment variables in your .env
file:
NEXT_PUBLIC_API_URL=<Your API URL>
REMOTION_AWS_SERVE_URL=<Your AWS Serve URL for Remotion>
To get the AWS Serve URL follow this guide from the remotion docs
To run the application in development mode, use the following command:
npm run dev
This will start the app on http://localhost:3000 by default. You can modify the port by setting the PORT environment variable.
To build the application for production, use the following command:
npm run build
npm run start
- Next.js: React framework for building server-side rendered applications.
- TailwindCSS: Utility-first CSS framework for styling the app.
- Remotion: Library for creating videos programmatically with React.
- Axios: HTTP client for making requests to the API.
- shadcn: A collection of re-usable components that you can copy and paste into your apps.
- Dashboard: Users can view and manage generated short videos.
- Create New Video: Users can define the video topic, style, and duration, and the app will generate the video content, audio, captions, and images using AI.
- Video Preview, Export & Delete: After the video is generated, users can preview it in the dialog and export it once rendered or deleted it.