A modern web application that provides an AI-powered chatbot with undetectable text generation capabilities.
- AI-powered chatbot with natural language processing
- Undetectable text generation algorithm
- User authentication and authorization
- Subscription management with Stripe integration
- Free trial with 3 prompts
- Modern and responsive UI
- Node.js 18.x or later
- PostgreSQL database
- Stripe account
- OpenAI API key
Create a .env file in the root directory with the following variables:
DATABASE_URL="postgresql://user:password@localhost:5432/chatgpt_pro"
NEXTAUTH_SECRET="your-secret-key"
NEXTAUTH_URL="http://localhost:3000"
STRIPE_SECRET_KEY="your-stripe-secret-key"
STRIPE_WEBHOOK_SECRET="your-stripe-webhook-secret"
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY="your-stripe-publishable-key"
STRIPE_PRICE_ID="your-stripe-price-id"
OPENAI_API_KEY="your-openai-api-key"
Y="your-openai-api-key"- Clone the repository:
git clone https://github.com/yourusername/chatgpt-pro.git
cd chatgpt-pro- Install dependencies:
npm install- Set up the database:
npx prisma migrate dev- Start the development server:
npm run devThe application will be available at http://localhost:3000.
- Create a Stripe account at https://stripe.com
- Create a product and price in the Stripe dashboard
- Set up webhooks in the Stripe dashboard:
- Endpoint URL:
https://your-domain.com/api/webhooks/stripe - Events to listen for:
checkout.session.completedcustomer.subscription.updatedcustomer.subscription.deleted
- Endpoint URL:
This project is licensed under the MIT License - see the LICENSE file for details.