Skip to content

Eien0618/web-chatbot

Repository files navigation

ChatGPT Pro

A modern web application that provides an AI-powered chatbot with undetectable text generation capabilities.

Features

  • 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

AI-powered chatbot with natural language processing

Prerequisites

  • Node.js 18.x or later
  • PostgreSQL database
  • Stripe account
  • OpenAI API key

Environment Variables

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"

Environment Variables

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/chatgpt-pro.git
cd chatgpt-pro
  1. Install dependencies:
npm install
  1. Set up the database:
npx prisma migrate dev
  1. Start the development server:
npm run dev

The application will be available at http://localhost:3000.

Stripe Setup

  1. Create a Stripe account at https://stripe.com
  2. Create a product and price in the Stripe dashboard
  3. Set up webhooks in the Stripe dashboard:
    • Endpoint URL: https://your-domain.com/api/webhooks/stripe
    • Events to listen for:
      • checkout.session.completed
      • customer.subscription.updated
      • customer.subscription.deleted

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

A modern web application that provides an AI-powered chatbot with undetectable text generation capabilities.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors