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:
- Generate image base on prompt
- Generate image variant
- Share generated images with others
- Image tags
- Image search
- Download your favorite images
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.
For the environment variables required, see env.sample
. Each server will need its own .env
file.
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
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