Skip to content

binh234/imagine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Imagine

Live demo

demo

Imagine is an AI image generation application using DALL-E 2 API allows users to generate beautiful and surprising images based on specified prompt. Users can also share their images to the community showcases.

Techologies:

Features

  • Generate image base on prompt
  • Generate image variant
  • Share generated images with others
  • Image tags
  • Image search
  • Download your favorite images

Setup development

Note: The Go server currently has some bugs in generating image variant due to the package go-openai, I will fix it ASAP

Generally, Go server will be 5-10x faster than Node server, so if you don't need such features as generating image variant, simply go with Go.

Setup environment variables

For the environment variables required, see env.sample. Each server will need its own .env file.

Run the server

For Node.js server:

cd server && npm start

For Go server:

cd go-server
go mod tidy
go run main.go

The server will then listen on http://localhost:8080

Run the client

Note: If you want to start client in development, change the BASE_URL inside utils/config.js to http://localhost:8080

cd client
npm run dev

The client will be available at http://localhost:5173