Skip to content

This project is an AI image generator that uses the Hugging Face API to generate images based on user input. The project is built using React, Express, and Node.js.

Notifications You must be signed in to change notification settings

sadiqhussain13/ai-image-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Image Generator

Version Node.js React

About

This project is an AI image generator that uses the Hugging Face API to generate images based on user input. The project is built using React, Express, and Node.js.

Installation

1. Clone the repository

Clone the repository using the following command:

git clone "https://github.com/sadiqhussain13/ai-image-generator.git"
cd ai-image-generator

2. Install dependencies

Install the necessary dependencies using the following command:

npm install

3. Set up environment variables

Create a .env file in the root of the project and add the following environment variable:

REACT_APP_HUGGINGFACE_API=YOUR_API_KEY

Replace YOUR_API_KEY with your actual Hugging Face API key.

Running the Application

1. Start the backend server

Start the backend server using the following command:

npm run start:backend

This will start the Express server on port 8000.

2. Start the frontend server

Start the frontend server using the following command:

npm run start:frontend

This will start the React development server on port 3000.

3. Open the application

Open the application in your web browser by navigating to http://localhost:3000.

Technologies Used

Technology Description
React Frontend framework
Express Backend framework
Node.js Runtime environment
Hugging Face API AI image generation API
Axios HTTP client library
CORS Cross-origin resource sharing library
dotenv Environment variable management library

About

This project is an AI image generator that uses the Hugging Face API to generate images based on user input. The project is built using React, Express, and Node.js.

Topics

Resources

Stars

Watchers

Forks