Skip to content

Turn your ideas into images! ๐ŸŽจ Built with React, Node.js, and Razorpay for secure credit management

Notifications You must be signed in to change notification settings

Sahimbehlim/Imagify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

8 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Imagify - AI Image Generator ๐Ÿ–ผ๏ธโœจ

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.

๐Ÿš€ Tech Stack

  • 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

โœจ Features

  • ๐Ÿ” 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

โš™๏ธ Environment Variables

Create a .env file in both client and server with the following:

Client (client/.env)

VITE_BACKEND_URL=http://localhost:3000
VITE_RAZORPAY_KEY_ID=your_razorpay_key_id

Server (server/.env)

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"

๐Ÿ› ๏ธ Setup Instructions

1. Clone the repository

git clone https://github.com/your-username/Imagify.git
cd imagify

2. Install server dependencies

cd server
npm install

3. Install client dependencies

cd ../client
npm install

4. Run the development servers

  • 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

โœจ UI Preview

Here's a quick look at the design and flow of the project:

Landing Page Authentication Form Image Generation Buy Credits
Landing Page Auth Form Generate Image Buy Credits

About

Turn your ideas into images! ๐ŸŽจ Built with React, Node.js, and Razorpay for secure credit management

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published