Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rachel-tanhao/openai-image-generation-app
π¨ Full-stack MERN app for generating and sharing AI-driven images using OpenAI's DALL-E API. β¨
https://github.com/rachel-tanhao/openai-image-generation-app
cloudinary dalle express mongodb node openai openai-api react tailwindcss vite webapp
Last synced: about 11 hours ago
JSON representation
π¨ Full-stack MERN app for generating and sharing AI-driven images using OpenAI's DALL-E API. β¨
- Host: GitHub
- URL: https://github.com/rachel-tanhao/openai-image-generation-app
- Owner: rachel-tanhao
- Created: 2024-09-16T19:54:22.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-09-21T18:32:24.000Z (4 months ago)
- Last Synced: 2024-11-22T02:50:20.798Z (2 months ago)
- Topics: cloudinary, dalle, express, mongodb, node, openai, openai-api, react, tailwindcss, vite, webapp
- Language: JavaScript
- Homepage: https://rachel-tanhao.github.io/OpenAI-Image-Generation-App/
- Size: 14.2 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# π OpenAI DALL-E Image Generation App
Welcome to DALL-E Clone, a full-stack web app powered by OpenAI's DALL-E API to generate stunning AI-driven images. This app is a playground for AI and creativity, where your words turn into art. π§βπ¨
Build, share, and explore a community of AI-generated artworkβall in a sleek, responsive design. Whether you're an AI enthusiast or just curious, this platform lets you dive into the magic of image generation easily! π¨β¨![Laptop Demo](laptop_demo.png)
## π Demo
Here is a working live demo:
https://rachel-tanhaow.github.io/OpenAI-Image-Generation-App/Please allow a few seconds for the homepage images to load if itβs your first time visiting.
(Apologies! Iβm using the free Cloudinary plan, so loading may take a moment) π
## π οΈ Technologies Used
- Frontend: React, Vite, Tailwind CSS
- Backend: Node.js, Express
- Database: MongoDB
- Image Cloud Storage: Cloudinary
- AI Image Generation: OpenAI DALL-E API![Phone Demo](phone_demo.png)
## π What It's All About
I built this project with the motivation to make interacting with AI image generation easy and fun! Many people don't often try platforms like Midjourney or DALL-E, so I wanted to create a user-friendly way for everyone to explore the magic of AI. Therefore, my goal was to simplify interacting with DALL-E and build a community around it. πͺ
As a result, this DALL-E Clone web app streamlines the process of generating AI images and provides a platform for sharing and discovering AI-generated artwork! π¨β¨
### β¨ New Features
- Generate AI images using DALL-E API
- Share generated images with the community
- View and download community-shared images
- Responsive design for various screen sizes## π Table of Contents
- [π OpenAI DALL-E Image Generation App](#-openai-dall-e-image-generation-app)
- [π Demo](#-demo)
- [π οΈ Technologies Used](#οΈ-technologies-used)
- [π What It's All About](#-what-its-all-about)
- [β¨ New Features](#-new-features)
- [π Table of Contents](#-table-of-contents)
- [β¨ Features](#-features)
- [π οΈ Setup Project](#οΈ-setup-project)
- [π΄ Prerequisites](#-prerequisites)
- [π Installation](#-installation)
- [π Usage](#-usage)
- [π Environment Variables](#-environment-variables)
- [π€ Contributing](#-contributing)
- [π« Contact Me](#-contact-me)
- [π License](#-license)## β¨ Features
- Generate AI images using DALL-E API
- Share generated images with the community
- View and download community-shared images
- Responsive design for various screen sizes## π οΈ Setup Project
### π΄ Prerequisites- [Node.js](https://nodejs.org/)
- [npm](https://www.npmjs.com/)
- [MongoDB](https://www.mongodb.com/)
- [Cloudinary account](https://cloudinary.com/)
- [OpenAI API key](https://openai.com/)### π Installation
1. Clone the repository
```bash
git clone https://github.com/rachel-tanhaow/OpenAI-Image-Generation-App.git
cd OpenAI-Image-Generation-App
```2. Install dependencies for both client and server
```bash
cd client
npm install
cd ../server
npm install
```3. Set up environment variables (see [Environment Variables](#environment-variables) section)
4. Start the back-end
```bash
cd server
npm start
```5. Start the front-end
```bash
cd client
npm run dev
```## π Usage
After starting both the client and server, navigate to `http://localhost:5173` (or a similar address, find in your terminal log) in your web browser. You can create new AI-generated images by providing prompts, and view or share images created by the community.## π Environment Variables
In the `server` directory, create a `.env` file and add the following values:
```bash
MONGODB_URL=your_mongodb_connection_string
OPENAI_API_KEY=your_openai_api_key
CLOUDINARY_CLOUD_NAME=your_cloudinary_cloud_name
CLOUDINARY_API_KEY=your_cloudinary_api_key
CLOUDINARY_API_SECRET=your_cloudinary_api_secret
```## π€ Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
1. Fork the repository
2. Create your feature branch (`git checkout -b feature/AmazingFeature`)
3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request### π« Contact Me
- [email protected]## π License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.