AI-powered Text-to-Image SaaS built using the MERN Stack. Generate stunning AI images from text prompts with user authentication, credit management, image history, favorites, dashboards, and secure cloud deployment.
https://imagify-a4x18j0w1-shashank-shekhars-projects.vercel.app/
- Generate images using text prompts
- High-quality AI generated images
- Instant image generation
- Download generated images
- User Registration
- Secure Login
- JWT Authentication
- Protected Routes
- Persistent Sessions
- Total Images Generated
- Credits Remaining
- Latest Prompt
- Personalized Dashboard
- View all generated images
- Download previous images
- Delete generated images
- Favorite important images
- Credit deduction after every generation
- Live credit updates
- Dashboard integration
- Navbar credit counter
- Desktop
- Tablet
- Mobile Friendly
- Frontend deployed on Vercel
- Backend deployed on Render
- MongoDB Atlas Database
User
โ
โผ
React Frontend
(Vercel)
โ
REST API (Axios + JWT)
โผ
Express.js Backend
(Render)
โโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโ
โผ โผ
MongoDB Atlas AI Image API
โ
โผ
User Data
Images
Favorites
Credits
- React.js
- React Router
- Tailwind CSS
- Axios
- React Toastify
- Node.js
- Express.js
- JWT Authentication
- Bcrypt
- Multer
- MongoDB Atlas
- Mongoose ODM
- Vercel
- Render
- ClipDrop API
Imagify
โ
โโโ client
โ โโโ src
โ โ โโโ assets
โ โ โโโ components
โ โ โโโ context
โ โ โโโ pages
โ โ โโโ App.jsx
โ โ
โ โโโ package.json
โ
โโโ server
โ โโโ config
โ โโโ controllers
โ โโโ middleware
โ โโโ models
โ โโโ routes
โ โโโ server.js
โ โโโ package.json
โ
โโโ README.md
โโโ API.md
โโโ ARCHITECTURE.md
โโโ DEPLOYMENT.md
โโโ LICENSE
git clone https://github.com/ShashankShekhar31/Imagify.gitcd client
npm install
npm run devcd server
npm install
npm run serverVITE_BACKEND_URL=YOUR_BACKEND_URLMONGODB_URI=
JWT_SECRET=
CLIPDROP_API=
CURRENCY=
FRONTEND_URL=| Method | Endpoint | Description |
|---|---|---|
| POST | /api/user/register | Register User |
| POST | /api/user/login | Login User |
| GET | /api/user/credits | Get User Credits |
| POST | /api/image/generate-image | Generate Image |
| POST | /api/image/history | Image History |
| DELETE | /api/image/delete/:id | Delete Image |
| PATCH | /api/image/favorite/:id | Toggle Favorite |
Detailed API documentation is available in API.md
- JWT Authentication
- Password Hashing using Bcrypt
- Protected Routes
- Environment Variables
- MongoDB Validation
- Authentication Middleware
- User Authorization
- Secure API Requests
This project follows production-oriented software engineering practices:
- Modular Backend Architecture
- MVC Folder Structure
- Context API for Global State
- Reusable React Components
- RESTful API Design
- Environment Variable Management
- Error Handling
- Loading States
- Toast Notifications
- Secure Authentication
- Cloud Deployment
The application is designed with scalability in mind:
- Component-based React architecture
- Modular Express controllers and routes
- Easily replaceable AI provider
- MongoDB Atlas cloud database
- Stateless JWT authentication
- REST API architecture
- Ready for Redis caching
- Easy integration with payment gateways
- Suitable for horizontal backend scaling
Hosted on
Vercel
Hosted on
Render
Hosted on
MongoDB Atlas
Deployment guide is available in DEPLOYMENT.md
- Google OAuth
- Razorpay Payment Gateway
- Email Verification
- Password Reset
- AI Prompt Templates
- Image Collections
- Image Sharing
- Prompt History Search
- Admin Dashboard
- Usage Analytics
- Dark Mode
- PWA Support
โ AI Powered SaaS
โ MERN Stack
โ JWT Authentication
โ Credit Management System
โ Dashboard Analytics
โ Image History
โ Favorite Images
โ Delete Images
โ Secure REST APIs
โ MongoDB Atlas
โ Responsive UI
โ Cloud Deployment
Manual testing performed for:
- User Registration
- Login
- Authentication
- Credit Deduction
- Image Generation
- Dashboard
- Image History
- Delete Image
- Favorite Images
- Protected APIs
Shashank Shekhar
GitHub
https://github.com/ShashankShekhar31
www.linkedin.com/in/shashank-shekhar-61633a273
This project is licensed under the MIT License.








