PromoGenieAI is a powerful AI-driven platform that helps businesses create engaging video ad scripts with ease. Leveraging Groq's advanced AI capabilities, our platform generates customized video advertising scripts tailored to your product and audience.
- AI-Powered Script Generation: Create compelling video ad scripts using Groq AI
- Customizable Parameters: Tailor scripts by product, audience, tone, and style
- Script History: Track and manage your generated scripts
- User Dashboard: Intuitive interface for script management
- Modern UI/UX: Responsive design with dark/light mode support
- Secure Authentication: JWT-based user authentication system
- Frontend: https://promo-genie-ai-tgyr.vercel.app
- Backend: https://promogenieai.onrender.com
- React + Vite
- Tailwind CSS
- React Router for navigation
- Axios for API integration
- Context API for state management
- Node.js
- Express.js
- MongoDB
- Groq AI API (llama3-70b-8192 model)
- JWT Authentication
- Security middleware (CORS, Helmet, Rate Limiting)
PromoGenieAI/
├── frontend/
│ ├── src/
│ │ ├── components/
│ │ │ ├── Dashboard.jsx
│ │ │ ├── Hero.jsx
│ │ │ ├── Features.jsx
│ │ │ ├── HowItWorks.jsx
│ │ │ ├── Testimonials.jsx
│ │ │ ├── Pricing.jsx
│ │ │ ├── FAQ.jsx
│ │ │ ├── Login.jsx
│ │ │ ├── SignIn.jsx
│ │ │ ├── Demo.jsx
│ │ │ ├── Layout.jsx
│ │ │ ├── Navbar.jsx
│ │ │ ├── PrivateRoute.jsx
│ │ │ ├── GenerationModal.jsx
│ │ │ ├── ScriptDisplayModal.jsx
│ │ │ └── SettingsModal.jsx
│ │ ├── services/
│ │ │ └── authService.js
│ │ ├── context/
│ │ │ └── ThemeContext.jsx
│ │ ├── assets/
│ │ ├── App.jsx
│ │ └── main.jsx
│ ├── public/
│ ├── .env.development
│ ├── .env.production
│ ├── index.html
│ ├── vite.config.js
│ ├── tailwind.config.js
│ └── package.json
│
└── backend/
├── config/
│ ├── db.js
│ ├── groq.js
│ └── dotenv.js
├── controllers/
│ ├── authController.js
│ └── groqController.js
├── middlewares/
│ ├── auth.js
│ └── errorHandler.js
├── models/
│ ├── User.js
│ └── Script.js
├── routes/
│ ├── authRoutes.js
│ └── groqRoutes.js
├── utils/
│ ├── inputValidator.js
│ └── tokenUtils.js
├── server.js
└── package.json
- Node.js (v14 or higher)
- npm or yarn
- MongoDB
- Groq API key
- Navigate to frontend directory:
cd frontend- Install dependencies:
npm install- Create
.env.developmentfile:
VITE_API_BASE_URL=http://localhost:5000- Create
.env.productionfile:
VITE_API_BASE_URL=https://promogenieai.onrender.com- Start development server:
npm run dev- Navigate to backend directory:
cd backend- Install dependencies:
npm install- Create
.envfile:
MONGODB_URI=your_mongodb_uri
PORT=5000
NODE_ENV=development
GROQ_API_KEY=your_groq_api_key
JWT_SECRET=your_jwt_secret- Start server:
npm startThe platform uses JWT-based authentication:
- Register with full name, email, and password
- Login to receive JWT token
- Protected routes require valid token
- Automatic token handling in frontend
- Secure login/signup system
- JWT token-based authentication
- Password encryption
- Theme preference persistence
- Modern, responsive design
- Dark/light mode toggle
- Script generation history
- User settings management
- AI-powered content creation using Groq's llama3-70b-8192 model
- Customizable parameters:
- Product name
- Target audience
- Tone
- Ad style
- Call to action
- Structured script sections:
- Opening Hook (10-15 seconds)
- Problem/Solution (20-30 seconds)
- Key Benefits (20-25 seconds)
- Call to Action (10-15 seconds)
- Real-time preview
- Generates 4 unique scripts per request
- JWT Authentication
- Password Encryption
- CORS Protection
- Rate Limiting
- Helmet Security Headers
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Rohan Ranjan - Full Stack Developer, Competitive Programmer