- Open the Terminal.
git clone https://github.com/Yowezy/DALL.E-API.git
- Install packages
npm i express openai dotenv
- Install dev dependencie
npm i -D nodemon
- Create
.env
File
PORT=5000
OPENAI_API_KEY='PUT YOUR API KEY'
- Run
npm run dev
ornpm run start
- Open
http://localhost:5000
on your browser.