Skip to content

ItsAnkitPatel/DALL-E

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 

Repository files navigation

Dall-E Clone

Project.Showcase.mp4

Overview

Welcome to the DALL-E Clone project! This project is a recreation inspired by the groundbreaking DALL-E model developed by OpenAI, which generates images from textual descriptions. This clone aims to replicate this functionality to a certain extent, allowing users to input prompts and generate corresponding images.

Features

  • Text-to-Image Generation: Input textual prompts and generate corresponding images.
  • Easy Download: You can can share the generated image with others and also can download it.
  • User-Friendly Interface: Simple user interface for ease of use.

Fronted

    

Backend

                   

Project Setup

git clone https://github.com/ItsAnkitPatel/DALL-E.git

Now install all packages inside client

cd DALL-E/client/

npm i

Then switch to backend and install packages.

cd DALL-E/server/

npm i

Inside DALL-E/client/ create .env file and create a environment variable VITE_BACKEND_API_URL
This will be your backend URL, for local it can be

VITE_BACKEND_API_URL="http://localhost:8080"

If you running the server locally then change the port number according to your local server.



Now inside DALL-E/server create .env file and add these environment variables and their values

MONGODB_URL = "";
OPENAI_API_KEY = "";
OPENAI_API_KEY = "";

CLOUDINARY_CLOUD_NAME = "";
CLOUDINARY_API_KEY = "";
CLOUDINARY_API_SECRET = "";

Create account in Cloudinary and OpenAI to get the API keys and then add them in the environment variable.

Either you can use local mongodb or Online(MongoDb Atlas) just provide the link and you are done.



In terminal start backend first because fronted is fetching images from backend.

cd DALL-E/server/
nodemon
cd DALL-E/client/
npm run dev

Visitors