This is a full-stack AI image generator app built with the MERN stack (MongoDB, Express.js, React.js, Node.js).
It allows users to generate AI images, buy credits (via Razorpay), login/register, and download the images.
- Frontend: React.js, Tailwind CSS, React Router, Axios, React Toastify, Framer Motion
- Backend: Node.js, Express.js, MongoDB, Razorpay Integration
- Authentication: JWT (JSON Web Tokens)
- Payments: Razorpay
- State Management: React Context API
- ๐ User Authentication (Login / Signup)
- ๐ง AI Image Generation from text prompts
- ๐ Credits System (users need credits to generate images)
- ๐ณ Secure Payment Gateway (Razorpay) to purchase credits
- ๐ฆ Download Generated Images
- ๐ฑ Fully Responsive for mobile, tablet, and desktop
- ๐ ๏ธ Modern UI with smooth animations
Create a .env
file in both client and server with the following:
VITE_BACKEND_URL=http://localhost:3000
VITE_RAZORPAY_KEY_ID=your_razorpay_key_id
PORT=3000
MONGO_URI=your_mongodb_connection_string
JWT_SECRET=your_jwt_secret_key
CLIPDROP_API=your_clipdrop_api_key
RAZORPAY_KEY_ID=your_razorpay_key_id
RAZORPAY_KEY_SECRET=your_razorpay_key_secret
CURRENCY="INR"
git clone https://github.com/your-username/Imagify.git
cd imagify
cd server
npm install
cd ../client
npm install
- Start server:
cd server
npm start
- Start client:
cd ../client
npm run dev
The client will run at http://localhost:5173 The server will run at http://localhost:3000
Here's a quick look at the design and flow of the project:
Landing Page | Authentication Form | Image Generation | Buy Credits |
---|---|---|---|
![]() |
![]() |
![]() |
![]() |