Skip to content

🎨 Full-stack MERN app for generating and sharing AI-driven images using OpenAI's DALL-E API. ✨

Notifications You must be signed in to change notification settings

rachel-tanhao/OpenAI-Image-Generation-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

27 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌟 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

🌐 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

πŸ“ 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

✨ 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

πŸš€ Installation

  1. Clone the repository
git clone https://github.com/rachel-tanhaow/OpenAI-Image-Generation-App.git
cd OpenAI-Image-Generation-App
  1. Install dependencies for both client and server
cd client
npm install
cd ../server
npm install
  1. Set up environment variables (see Environment Variables section)

  2. Start the back-end

cd server
npm start
  1. Start the front-end
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:

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

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.