We use the OpenAI API to make calls to Dall-E and present the users with their creations.
This project is built using Nuxt v3, look at the nuxt 3 documentation to learn more.
- Copy the project to your local machine
- Open the text-to-image folder in your IDE
- Create a new .env file in the root of the project
- Add the following line to the .env file:
NUXT_API_KEY="your Dall-E2 api key here"
- Install dependencies:
yarn install
Start the development server on http://localhost:3000
yarn dev
Or start the development server on http://localhost:XXXX
yarn dev --port XXXX
Build the application for production:
yarn build
Locally preview production build:
yarn preview
Checkout the deployment documentation for more information.