AI Image Generator is a web application that allows users to generate stunning AI-driven images by providing creative prompts. It includes secure authentication to personalize user experiences and ensures the safety of user data.
- User Authentication: Secure login and signup functionality using JWT.
- Prompt-to-Image: Enter a text prompt to generate an AI-generated image.
- Responsive Design: Works seamlessly on desktop and mobile devices.
- Secure Data Handling: Ensures user data safety and privacy.
- Frontend: React, HTML, Tailwind CSS, JavaScript
- Backend: Node.js, Express.js
- Database: MongoDB
- others: RESTful APIs, JWT for authentication, AI API for image generation(Clipdrop API)
To run this project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/vaishnaviprakash12/Imagify.git cd Imagify
-
Install dependencies for the frontend:
cd client npm install
-
Install dependencies for the backend:
cd ../server npm install
-
Set up environment variables: Create a
.env
file in theserver
directory and add the following variables:NODE_ENV = development PORT = 3000 MONGODB_URI = your_mongodb_connection_string JWT_SECRET = your_jwt_secret_key CLIPDROP_API = your_ai_image_generator_api_key
-
Run the application:
# Start the backend server cd server npm run server # Start the frontend server in another terminal cd client npm run dev
- Register: Create a new account or log in with existing credentials.
- Enter Prompt: Write a text prompt in the input field.
- Generate Image: Click the "Generate" button to create an AI-generated image.
- Save or Download: Optionally download or save the generated image.
To deploy AI Image Generator in production:
-
Update the
.env
file in theserver
directory with production MongoDB connection string, JWT secret key, and Cloudinary API key. -
Build the frontend for production:
cd client npm run build ## Contact
Vaishnavi Prakash - LinkedIn - Email
Project Link: https://github.com/vaishnaviprakash12/Imagify
Live Site: https://imagify-2.onrender.com/