Turn your imagination into stunning AI-generated art!
Welcome to Art Genie, the ultimate web application where you can create breathtaking images from text prompts. Powered by cutting-edge AI and built with the MERN stack, Art Genie is your gateway to exploring the fusion of technology and creativity.
โจ Text-to-Image Generation
- Input any text prompt, and let Art Genie transform your words into stunning visuals using Google Gemini AI.
๐ณ Buy Credits Seamlessly
- Purchase more credits to generate additional images using Razorpay's secure payment gateway.
๐ Secure User Authentication
- Your data is safe with us! Authentication is powered by JWT and bcrypt for maximum security.
๐ Smooth Animations
- Enjoy a visually engaging experience with seamless transitions and animations using Framer Motion.
๐ฑ Responsive Design
- Access Art Genie on any device. Tailwind CSS ensures a stunning, user-friendly interface across all screen sizes.
Frontend:
- React.js
- Tailwind CSS for responsive design and styling
- Framer Motion for animations
Backend:
- Node.js
- Express.js
- MongoDB + Mongoose
Other Tools:
- Clipdrop API for AI-generated images
- Razorpay for payments
- JWT and bcrypt for authentication
-
Sign Up / Log In ๐
Create an account or log in to access the features. -
Enter a Text Prompt โ๏ธ
Describe your idea or vision in words. -
Generate AI Art ๐จ
Click on "Generate" and watch your words turn into stunning artwork! -
Buy Credits ๐ณ
Purchase more credits directly through Razorpay when needed. -
Download and Share ๐ผ๏ธ
Save your masterpiece or share it with the world!
Take a visual tour of Art Genie:
Users can create an account to access the platform.

Returning users can log in securely.

Explore the homepage when not logged in.

Once logged in, users can access features to generate AI images.

Buy credits easily to generate more AI images.

Enter a text prompt to generate stunning AI art.

Enjoy smooth animations while your image is being created.

View and download the AI-generated masterpiece.

Create more art seamlessly with the โGenerate Anotherโ option.

artgenie/
โโโ client/
โ โโโ .env
โ โโโ .gitignore
โ โโโ eslint.config.js
โ โโโ package.json
โ โโโ postcss.config.js
โ โโโ tailwind.config.js
โ โโโ vite.config.js
โ โโโ index.html
โ โโโ src/
โ โ โโโ App.jsx
โ โ โโโ main.jsx
โ โ โโโ index.css
โ โ โโโ assets/
โ โ โ โโโ assets.js
โ โ โโโ components/
โ โ โ โโโ Description.jsx
โ โ โ โโโ Footer.jsx
โ โ โ โโโ GenerateButton.jsx
โ โ โ โโโ Header.jsx
โ โ โ โโโ Login.jsx
โ โ โ โโโ Navbar.jsx
โ โ โ โโโ Steps.jsx
โ โ โ โโโ Testimonial.jsx
โ โ โโโ context/
โ โ โ โโโ AppContext.jsx
โ โ โโโ pages/
โ โ โ โโโ BuyCredit.jsx
โ โ โ โโโ Home.jsx
โ โ โ โโโ Result.jsx
โ โ โโโ ...
โโโ server/
โ โโโ .env
โ โโโ package.json
โ โโโ server.js
โ โโโ config/
โ โ โโโ mongodb.js
โ โโโ controllers/
โ โ โโโ imageController.js
โ โ โโโ userController.js
โ โโโ middlewares/
โ โ โโโ auth.js
โ โโโ models/
โ โ โโโ transactionModel.js
โ โ โโโ userModel.js
โ โโโ routes/
โ โ โโโ imageRoutes.js
โ โ โโโ userRoutes.js
โ โโโ ...
Clone the repository and install dependencies:
git clone https://github.com/Aashay30/art-genie.git
cd art-geniecd server
npm install
npm startcd client
npm install
npm start - Clipdrop API ๐จ: Integrated for AI-powered image generation from text prompts.
- Razorpay ๐ณ: Seamlessly handles secure credit purchases and payment transactions.
- JWT-Based Token System ๐: Implements secure authentication using JWT for session management.
- Password Security ๐ก๏ธ: Utilizes bcrypt for hashing and securing user passwords.
- React Context API ๐: Manages global state efficiently, ensuring smooth data flow across the application.
- MongoDB Collections ๐๏ธ:
- Users Collection ๐ค: Stores user credentials and profile details.
- Transactions Collection ๐ฐ: Logs payment history and credit purchases.
- Art Generation Logs ๐: Maintains records of generated images and text prompts.
- Frontend: React.js โ๏ธ, Tailwind CSS ๐จ, Framer Motion โจ
- Backend: Node.js & Express.js ๐
- Database: MongoDB ๐๏ธ
- Payment Gateway: Razorpay ๐ณ
- Authentication: JWT and bcrypt ๐๐ก๏ธ
- AI Integration: Clipdrop API for text-to-image generation ๐ค๐จ
POST /api/v1/users/registerโ๏ธ: Register a new user.POST /api/v1/users/login๐: Authenticate a user and return a JWT.
POST /api/v1/images/generate๐จ: Generate an AI image from a text prompt.GET /api/v1/images/:id๐ท: Retrieve details of a generated image.
- Situation: Art Genie required robust authentication and secure user data handling for a public-facing AI art platform.
- Task: Implement a secure authentication system and protect sensitive user data.
- Action: Integrated JWT for stateless authentication, used bcrypt for password hashing, and enforced secure API endpoints with middleware.
- Result: Achieved a secure login and registration flow, ensuring user data privacy and building user trust.
- Situation: Users needed a seamless way to purchase credits for generating more AI images.
- Task: Integrate a reliable payment gateway and handle payment verification securely.
- Action: Used Razorpayโs Node.js SDK for payment processing, implemented server-side verification, and managed transaction logs in MongoDB.
- Result: Enabled smooth, secure credit purchases with real-time feedback, increasing user engagement and monetization.
- Situation: Users expected fast, high-quality image generation from text prompts.
- Task: Integrate an AI image generation API and optimize the user experience during processing.
- Action: Connected to the Clipdrop API for text-to-image, implemented async request handling, and added animated loading states with Framer Motion.
- Result: Delivered a responsive, visually engaging experience with minimal wait times and clear feedback during image generation.
- Situation: Open AI endpoints could be abused, leading to excessive costs or service disruption.
- Task: Protect AI generation endpoints from abuse and ensure fair usage.
- Action: Added authentication checks, implemented credit deduction logic, and set up basic rate limiting on sensitive routes.
- Result: Prevented unauthorized access and abuse, ensuring platform stability and cost control.
- Situation: The app needed to look great and work smoothly on all devices, with engaging transitions.
- Task: Build a responsive, animated UI that delights users on desktop and mobile.
- Action: Used Tailwind CSS for responsive layouts and Framer Motion for smooth animations and transitions.
- Result: Achieved a modern, mobile-friendly interface with delightful user interactions and high engagement.
- Situation: Needed to store user data, transactions, and generated art efficiently for future growth.
- Task: Design a scalable MongoDB schema for users, transactions, and art logs.
- Action: Modeled collections for users, transactions, and image logs; used Mongoose for schema validation and relationships.
- Result: Ensured reliable data storage, easy retrieval, and scalability for future features like user galleries and analytics.
- Situation: Multiple components needed access to user state, credits, and art generation status.
- Task: Implement efficient global state management.
- Action: Leveraged React Context API to manage authentication, credits, and image generation state across the app.
- Result: Provided a seamless, consistent user experience with accurate state updates and minimal prop drilling.
- Situation: Users needed clear feedback for errors (e.g., failed payments, invalid prompts, API issues).
- Task: Handle errors gracefully and inform users without breaking the flow.
- Action: Implemented try/catch blocks, displayed user-friendly error messages, and used animated loaders for async operations.
- Result: Reduced user frustration and improved trust by providing clear, actionable feedback for all operations.
- Situation: The app required smooth deployment and secure handling of environment variables for both frontend and backend.
- Task: Set up reliable deployment pipelines and manage secrets securely.
- Action: Used Vercel for frontend deployment, managed environment variables for API keys and secrets, and documented setup steps for contributors.
- Result: Achieved fast, reliable deployments with no secret leaks and easy onboarding for new developers.
- Situation: Needed to quickly learn and integrate new APIs (Clipdrop, Razorpay) with limited documentation.
- Task: Master new tools and deliver features on a tight timeline.
- Action: Studied API docs, explored community examples, and iteratively built/tested integrations.
- Result: Successfully delivered advanced features and became proficient in new technologies, demonstrating adaptability and fast learning.
Art Genieโs development journey highlights expertise in full-stack engineering, secure authentication, payment integration, real-time AI API usage, responsive UI/UX, and robust error handling. Each challenge was met with a structured, results-driven approach, making these experiences ideal for behavioral interview discussions.
- Built a production-ready application using the MERN stack (MongoDB, Express, React, Node.js).
- Designed and implemented both frontend and backend, ensuring seamless integration and data flow.
- Gained hands-on experience with JWT-based authentication and bcrypt for password security.
- Developed middleware to protect sensitive routes and manage user sessions securely.
- Successfully integrated Razorpay for real-time, secure credit purchases.
- Implemented server-side payment verification and transaction logging, ensuring financial integrity.
- Integrated Clipdrop API for text-to-image generation, handling asynchronous workflows and error states.
- Optimized user experience with animated loaders and progress indicators.
- Leveraged Tailwind CSS and Framer Motion to create a visually appealing, fully responsive, and interactive interface.
- Ensured consistent UX across devices and screen sizes.
- Utilized React Context API for efficient global state management, reducing prop drilling and improving maintainability.
- Ensured real-time updates for user credits, authentication, and generated images.
- Modeled scalable MongoDB schemas for users, transactions, and art logs using Mongoose.
- Prepared the application for future features like user galleries and analytics.
- Implemented comprehensive error handling and user-friendly feedback for all major workflows.
- Used animated loaders and clear messages to keep users informed and engaged.
- Deployed the application on Vercel and managed environment variables securely for both frontend and backend.
- Documented setup and deployment steps for easy onboarding and collaboration.
- Quickly learned and integrated new APIs (Clipdrop, Razorpay) with limited documentation.
- Demonstrated adaptability and problem-solving in a fast-paced development environment.
- Maintained high code quality with ESLint, Prettier, and modular architecture.
- Followed best practices for security, scalability, and maintainability throughout the project.
The Art Genie project provided deep experience in building secure, scalable, and user-friendly full-stack applications. It highlights strengths in authentication, payment integration, real-time API usage, responsive UI/UX, and rapid problem-solvingโmaking these takeaways valuable for future roles and interviews.
- Add support for multiple languages in text prompts ๐.
- Implement user profiles with saved artwork ๐ค๐ผ๏ธ.
- Introduce social sharing features for generated images ๐ฒ.
- Full-stack development with the MERN stack โ๏ธ๐.
- API integration and payment gateway implementation ๐๐ณ.
- Responsive UI design with Tailwind CSS ๐ฑ๐จ.
- State management using React Context API ๐.
- Authentication and security with JWT and bcrypt ๐๐ก๏ธ.