This repository contains a MERN (MongoDB, Express.js, React.js, Node.js) stack application that generates images from user prompts. The frontend is built using Vite for fast development, and the backend handles prompt processing and storage efficiently. Below is a detailed overview of the project and its structure.
- Generate images based on textual prompts.
- User authentication and prompt-based image generation.
- Smooth and responsive user interface.
- Optimized backend API for seamless performance.
- Secure handling of user data with authentication middleware.
- Frontend: React.js, Vite
- Backend: Node.js, Express.js
- Database: MongoDB
- Styling: CSS Modules
- Authentication: Custom middleware
server/
βββ config/ # Configuration files (e.g., database connection)
βββ controllers/ # Logic for handling requests
β βββ imageController.js
β βββ userController.js
βββ middlewares/ # Authentication middleware
β βββ auth.js
βββ models/ # Mongoose models for MongoDB
β βββ transactionModel.js
β βββ userModel.js
βββ routes/ # API endpoints
β βββ imageRoutes.js
β βββ userRoutes.js
βββ .env # Environment variables
βββ server.js # Entry point of the backend
client/src/
βββ components/ # Reusable UI components
β βββ Description.jsx
β βββ Footer.jsx
β βββ GenerateBtn.jsx
β βββ Header.jsx
β βββ Loader.jsx
β βββ Login.jsx
β βββ Navbar.jsx
β βββ Steps.jsx
β βββ Testimonials.jsx
βββ context/ # React Context for state management
β βββ AppContext.jsx
βββ pages/ # Application pages
β βββ BuyCredit.jsx
β βββ Home.jsx
β βββ Result.jsx
βββ App.css # Global CSS styles
βββ App.jsx # Main React component
βββ index.css # Global styles
βββ main.jsx # Entry point of the frontend
π§ Contact
For any queries or suggestions, reach out at: gps.96169@gmail.com.
π§ Contact
For any queries or suggestions, reach out at:







