- Notifications
You must be signed in to change notification settings - Fork0
Go viral on social media using this AI content creation tool
License
savnani5/Lunaris
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Lunaris is an innovative platform that uses AI to generate viral video clips from long-form content. This repository contains both the frontend and backend components of the application.
To get started with Lunaris, clone the repository:
git clone https://github.com/savnani5/Lunaris.gitcd Lunaris
- Node.js (v14 or later)
- npm (v6 or later)
Navigate to the frontend directory:
cd Lunaris/frontend
Install dependencies:
npm install
Create a
.env.local
file in thefrontend
directory:touch .env.local
Add the following environment variables to
.env.local
:# ClerkNEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=your_clerk_publishable_keyCLERK_SECRET_KEY=your_clerk_secret_keyNEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-inNEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up# MongoDBMONGODB_URI=your_mongodb_uri# Backend URLNEXT_PUBLIC_BACKEND_URL=backend_url# YouTube API KeyYT_API_KEY=your_youtube_api_key
Replace the placeholders with your actual credentials and settings.
Start the development server:
npm run dev
Open your browser and navigate to
http://localhost:3000
- Python 3.11 or later
- pip
- FFmpeg
- ImageMagick
Navigate to the backend directory:
cd Lunaris/backend
Install dependencies:
pip install -r requirements.txt
Create a
.env
file in thebackend
directory:touch .env
Add the following environment variables to
.env
:FLASK_ENV=developmentMONGODB_URI=your_mongodb_uriAWS_ACCESS_KEY_ID=your_aws_access_keyAWS_SECRET_ACCESS_KEY=your_aws_secret_keyAWS_REGION=your_aws_regionS3_BUCKET_NAME=your_s3_bucket_nameOPENAI_API_KEY=your_openai_api_keyDG_API_KEY=your_deepgram_api_key
Replace the placeholders with your actual credentials and settings.
Start the Flask development server:
python app.py
The server will start on
http://localhost:5001
To run the backend using Docker:
Build the Docker image:
docker build -t lunaris-backend .
Run the Docker container:
docker run -p 8080:8080 --env-file .env lunaris-backend
The server will be accessible at
http://localhost:8080
To set up a Conda environment for the backend:
Create a new Conda environment:
conda create -n lunaris python=3.11
Activate the environment:
conda activate lunaris
Install Python dependencies:
pip install -r requirements.txt
Install system dependencies:
FFmpeg and ImageMagick are system-level dependencies. The installation method depends on your operating system:
On Ubuntu/Debian:
sudo apt-get updatesudo apt-get install ffmpeg imagemagick
On macOS (using Homebrew):
brew install ffmpeg imagemagick
On Windows:Download and install FFmpeg fromhttps://ffmpeg.org/download.htmlDownload and install ImageMagick fromhttps://imagemagick.org/script/download.php
Alternatively, if you prefer using Conda for these dependencies:
conda install -c conda-forge ffmpeg imagemagick
Note: Using Conda for system packages may not always be ideal for production environments.
Run the backend server:
python app.py
- The frontend is built with Next.js and uses Tailwind CSS for styling.
- The backend uses Flask and integrates with various AI services for video processing.
- Make sure to set up the necessary cloud services (MongoDB, AWS S3, OpenAI, Deepgram) before running the application.
- For production deployment, consider using a process manager like PM2 for the backend and a production-ready server for the frontend.
Please read ourContributing Guidelines for details on our code of conduct and the process for submitting pull requests.
This project is licensed under the MIT License - see theLICENSE file for details.
About
Go viral on social media using this AI content creation tool