Git Product home page Git Product logo

dinna-dalle's Introduction

Alt text

Dinna Dall-E is a web application that allows users to create new images using OpenAI's Dall-E model. The application uses Cloudinary to store and serve the images, and Tailwind CSS for a modern and minimal design. The front-end of the application was built with React using Vite, while the back-end was built with Node.js using Express and MongoDB for the database.

Demo

You can view a live demo of this project here.

Installation

To install and run the project on your local machine, follow these steps:

  1. Clone the repository: git clone https://github.com/username/dalle.git
  2. Install dependencies for the front-end: cd dalle && npm install
  3. Start the front-end development server: cd client && npm run dev
  4. Initialize an empty package.json file in server: cd server && npm init -y
  5. Install dependencies for the back-end: npm install cloudinary cors dotenv express mongoose nodemon openai
  6. Add "type": "module"
  7. Add in scripts: "start": "nodemon index"
  8. Start the back-end server: npm start

Note: Make sure to create a .env file in the server directory and add your own MongoDB URL, OpenAI API key, and Cloudinary credentials.

Features

  • Dynamic image layout
  • Modern and minimal design with hover effect showcasing user's prompt, their name, and download button
  • Search functionality
  • New images generated through "Surprise Me" button
  • Integration with OpenAI API to generate new images
  • Cloud-based image storage and serving through Cloudinary
  • Responsive design with Tailwind CSS
  • File-saving functionality using the FileSaver package

Dependencies

  • cloudinary
  • cors
  • dotenv
  • express
  • mongoose
  • nodemon
  • openai
  • react
  • react-dom
  • react-router-dom
  • tailwindcss
  • vite

Known Issues

  • There is an issue where the generated images are not displayed on the home page after sharing it to the community.

License

This project is licensed under the MIT License.

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.