A comprehensive AI services platform with a professional landing page and dashboard offering various AI-powered tools and services.
- Modern Landing Page: Professional hero section, sticky navbar, pricing plans, and feature highlights
- User Dashboard: Clean sidebar navigation with multiple AI tools
- Content Generation: Blog posts, stories, and content rewriting
- Language Services: Translation, text-to-speech, and speech-to-text
- Media Generation: Image and video creation
- AI Assistant: Chatbot and code generation
- Unified API Architecture: Environment-based configuration for easy integration
- Responsive Design: Works on all devices with dark/light mode support
- Frontend: Next.js 14, React, TypeScript
- UI Components: Tailwind CSS, shadcn/ui
- Authentication: Supabase Auth
- Database: Supabase PostgreSQL
- API Integration: OpenAI, Google AI, Stability AI, ElevenLabs
- Node.js 18+ and npm/yarn
- Supabase account
- API keys for AI services (or use mock mode for development)
- Clone the repository
git clone https://github.com/yourusername/ai-platform.git
cd ai-platform- Install dependencies
npm install
# or
yarn install- Set up environment variables
Create a .env.local file in the root directory with the following variables:
# Supabase Configuration
NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key
SUPABASE_SERVICE_KEY=your_supabase_service_key
# API Configuration
MOCK_MODE=true # Set to false to use real API services
# OpenAI (Optional for real API mode)
OPENAI_API_KEY=your_openai_api_key
# Google AI (Optional for real API mode)
GOOGLE_AI_API_KEY=your_google_ai_api_key
# Stability AI (Optional for real API mode)
STABILITY_API_KEY=your_stability_api_key
# ElevenLabs (Optional for real API mode)
ELEVENLABS_API_KEY=your_elevenlabs_api_key
# Stripe (Optional for payment processing)
STRIPE_SECRET_KEY=your_stripe_secret_key
STRIPE_PUBLISHABLE_KEY=your_stripe_publishable_key
STRIPE_WEBHOOK_SECRET=your_stripe_webhook_secret
- Run the development server
npm run dev
# or
yarn dev- Open http://localhost:3000 in your browser
-
Create a new project in Supabase
-
Run the SQL migrations in the
supabase/migrationsfolder to set up the required tables -
Update your environment variables with the Supabase URL and keys
By default, the application runs in mock mode, which simulates AI service responses without making actual API calls. To use real AI services:
- Set
MOCK_MODE=falsein your.env.localfile - Add the required API keys for the services you want to use:
- OpenAI for content generation, chat, and code generation
- Google AI for additional language services
- Stability AI for image generation
- ElevenLabs for text-to-speech
The easiest way to deploy the application is with Vercel:
- Push your code to a GitHub repository
- Import the repository in Vercel
- Configure the environment variables
- Deploy
A Dockerfile is provided for containerized deployment:
docker build -t ai-platform .
docker run -p 3000:3000 ai-platform- Add a new service configuration in
src/lib/api-config.ts - Create service functions in
src/lib/api-service.ts - Add mock responses in
src/lib/mock-data.tsfor development - Create UI components in the appropriate dashboard section
The application uses Tailwind CSS for styling and shadcn/ui for components. You can customize the theme in:
tailwind.config.ts- For Tailwind configurationsrc/app/globals.css- For global stylessrc/components/ui/*- For component styling
This project is licensed under the MIT License - see the LICENSE file for details.