Skip to content

DALL·E 2 Image Generator with Davinci-003 Suggestions

License

Notifications You must be signed in to change notification settings

MartsTech/dalle2-clone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DALL·E 2 Logo
DALL·E 2 Clone

DALL·E 2 Clone created with Next.JS and Azure

Release License

Key FeaturesKey TechnologiesSetupSupportLicense

Home Screenshot

Key Features

  • Davinci 003 Prompt Suggestions
  • DALL·E 2 Art Generation
  • Azure Serverless Enviroment
  • Azure Storage

Key Technologies

  • Next.JS
  • TailwindCSS
  • Redux
  • Typescript
  • Azure
  • OpenAi API
  • Terraform

Setup

The project contains a packages folder in the root directory of the project. This folder contains 3 subfolders: client, azure, and terraform. To use the project locally, you need to follow the below steps.

Prerequisites

Before you begin, make sure you have the following installed:

  • Terraform CLI
  • Azure CLI
  • Node.js

Azure Serverless Functions Setup

Open a terminal and navigate to the packages/terraform directory.

  1. Run terraform init to initialize Terraform.
  2. Run terraform apply to create the Azure resources needed for the serverless functions.
  3. Once the resources are created, you need to create a blob storage using either the Azure Storage extension in Visual Studio Code or the Azure Portal. Name the container images.

Azure Setup

  1. Open a terminal and navigate to the packages/azure directory.
  2. Copy the contents of the .env.example file and paste them into a new file called local.settings.json.
  3. Fill in the values in the local.settings.json file.
  4. Download the cloud settings using either the Azure Functions extension in Visual Studio Code or the Azure Portal.
  5. Add the following config to the local.settings.json file to enable CORS:
"Host": {
  "CORS": "http://localhost:3000"
}

Client Setup

  1. Open a terminal and navigate to the packages/client directory.
  2. Copy the contents of the .env.example file and paste them into a new file called .env.local.
  3. Fill in the values in the .env.local file.

Support

Whether you use this project, have learned something from it, or just like it, please consider supporting it by buying me a coffee, so I can dedicate more time on open-source projects like this :)

Buy Me A Coffee

License

You can check out the full license here

This project is licensed under the terms of the MIT license