Git Product home page Git Product logo

martstech / dalle2-clone Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 458 KB

DALL·E 2 Image Generator with Davinci-003 Suggestions

License: MIT License

JavaScript 1.99% TypeScript 90.80% CSS 0.26% HCL 6.95%
eslint feature-driven-development monorepo nextjs openai prettier react redux tailwindcss typescript dall-e2 azure terraform davinci-003 serverless image-generation image-generator image-generator-using-openai-api

dalle2-clone's Introduction

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

dalle2-clone's People

Contributors

martstech avatar

Watchers

 avatar

Forkers

imaginarybit

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.