A modern web application built with Next.js 15, TypeScript, and Supabase, featuring Stripe integration for payments.
- Next.js 15 with App Router
- TypeScript for type safety
- Supabase for authentication and database
- Stripe integration for payments
- Tailwind CSS for styling
- Framer Motion for animations
- ESLint for code quality
- Husky for Git hooks
- Automatic sitemap generation
Create your personalized AI avatar with our intuitive interface.
Write your script or use AI-powered prompts to generate video content.
Track and manage your video creation history, powered by Supabase.
Choose from flexible pricing plans with secure Stripe payment integration.
- Node.js (Latest LTS version recommended)
- npm or yarn
- Supabase account
- Stripe account -Heygen account
- Clone the repository:
git clone https://github.com/yourusername/ai-avatar.git
cd ai-avatar
- Install dependencies:
npm install
# or
yarn install
- Copy the environment variables:
cp .env.example .env
- Update the
.env
file with your credentials:
- Supabase configuration
- Stripe API keys
- Heygen API keys
- Other environment-specific variables
Run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 in your browser.
ai-avatar/
├── src/
│ ├── app/ # Next.js app router pages
│ ├── components/ # Reusable components
│ ├── contexts/ # React contexts
│ ├── types/ # TypeScript type definitions
│ ├── utils/ # Utility functions
│ └── middleware.ts # Next.js middleware
├── public/ # Static assets
├── scripts/ # Build and utility scripts
├── supabase/ # Supabase configurations
└── ...config files
npm run dev
- Start development servernpm run build
- Build for productionnpm run start
- Start production servernpm run lint
- Run ESLintnpm run postbuild
- Generate sitemap
This project is configured for deployment on Vercel. The vercel.json
file includes the necessary configuration.
To deploy:
- Push to your GitHub repository
- Connect to Vercel
- Configure environment variables
- Deploy!
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.