This is the frontend client for QuickGPT.
It is built with React, Tailwind CSS, and Context API for state management.
- βοΈ React + Vite
- π¨ Tailwind CSS
- π Context API
- π Axios
- π React Hot Toast
- β³ Moment.js
client/
βββ components/ # UI components
βββ context/ # AppContext
βββ pages/ # Login, Chat, Credits
βββ assets/ # Images & icons
βββ App.jsx # Main app
βββ README.md
# Go to client folder
cd client
# Install dependencies
npm install
# Start development server
npm run devπ Create a .env file in client/ and add
VITE_SERVER_URL=http://localhost:3000
- User login & registration
- Chat with AI
- Generate AI images
- Purchase credits (Stripe integrated)
- Dark/Light theme toggle
- Recent chats list
This is the backend API for QuickGPT.
It is built with Node.js, Express.js, MongoDB, and Stripe for payments.
- π Node.js + Express.js
- π MongoDB + Mongoose
- π³ Stripe API (Payments & Webhooks)
- π JWT Authentication
- π‘οΈ Middleware (Auth & Error handling)
server/
βββ models/ # Mongoose models (User, Chat, Transaction)
βββ routes/ # Express routes (auth, chat, credit)
βββ controllers/ # Controller logic
βββ middleware/ # Auth middleware
βββ configs/ # DB connection, Stripe config
βββ server.js # Entry point
βββ .env # Environment variables
βββ README.md
# Go to backend folder
cd server
# Install dependencies
npm install
# Start development server
npm run devπ Create a .env file in server/ and add:
MONGO_URI=your_mongodb_connection_string
JWT_SECRET=your_jwt_secret
STRIPE_SECRET_KEY=your_stripe_secret
STRIPE_WEBHOOK_SECRET=your_stripe_webhook_secret
PORT=3000
- User authentication (JWT-based)
- Chat API for AI conversations
- Credit purchase (Stripe integration)
- Webhook support for Stripe events
- Secure routes with middleware
- RESTful API structure
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
- π΄ Fork this repository
- π― Clone your fork
git clone https://github.com/<your-username>/QuickGPT.git - π§ Create a new branch:
git checkout -b feature-branch
- π Make your changes and commit
git commit -m "Add new feature"
- π Push to your fork:
git push origin feature-branch
- π Open a Pull Request
MIT License Β© 2025 Sanjana Yadav