Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/indiecodermm/imagine-this

A web app that can generate images based on text prompts using OpenAI API. Created with React, Express.
https://github.com/indiecodermm/imagine-this

express image-generator openai-api react

Last synced: about 1 month ago
JSON representation

A web app that can generate images based on text prompts using OpenAI API. Created with React, Express.

Awesome Lists containing this project

README

        

- [🖼 Imagine This](#-imagine-this)
- [🛠 Tech Stack](#-tech-stack)
- [🎨 Features](#-features)
- [🚀 Live Demo](#-live-demo)
- [⚙ Getting Started](#-getting-started)
- [📧 Contact](#-contact)
- [🤝 Contributing](#-contributing)
- [💖 Show your support](#-show-your-support)
- [📜 License](#-license)

# 🖼 Imagine This

*Imagine This* is a web application that allows users to generate images using text prompts.

![Screenshot](app_screenshot.png)

## 🛠 Tech Stack
- React
- Express
- [OpenAI API](https://beta.openai.com/docs/guides/images/usage?lang=node.js)

## 🎨 Features
- User-friendly interface
- Instant image generation

## 🚀 Live Demo
Try out the live version on [ImagineThis Website](https://indiecodermm.github.io/imagine-this)

## ⚙ Getting Started
To run this app on your local machine, follow these steps:

1. Clone this repository into your desired project folder.
```sh
cd my-project
git clone [email protected]:IndieCoderMM/imagine-this.git .
```
2. Install dependencies in `client/` and `server/` directories.
```sh
cd client && npm install
cd ../server && npm install
```
3. Create `.env` file inside `server/` folder and add your [OpenAI_API_KEY](https://beta.openai.com/account/api-keys).
```sh
OPENAI_API_KEY="sk-adfjeofoefkn........"
```
> Please keep in mind that the OpenAI API key may have some issues if you are using the free plan.
> I faced some issues with my API key and am currently working on resolving them. I will update the app as soon as I have a solution.

4. Run the development server.
```sh
cd server && npm run dev
```
5. Inside `client/src/App.js`, set `API_URL` to `"/openai/imagine"`.
6. Start the application.
```sh
cd client && npm start
```

## 📧 Contact

I am always looking for ways to improve my project. If you have any suggestions or ideas, I would love to hear from you.

[![Github](https://img.shields.io/badge/GitHub-673AB7?style=for-the-badge&logo=github&logoColor=white)](https://github.com/IndieCoderMM)
[![Twitter](https://img.shields.io/badge/Twitter-1DA1F2?style=for-the-badge&logo=twitter&logoColor=white)](https://twitter.com/hthant_oo)
[![Linkedin](https://img.shields.io/badge/LinkedIn-0077B5?style=for-the-badge&logo=linkedin&logoColor=white)](https://linkedin.com/in/hthantoo)
[![Gmail](https://img.shields.io/badge/Gmail-D14836?style=for-the-badge&logo=gmail&logoColor=white)](mailto:[email protected])

## 🤝 Contributing

I welcome any and all contribution that can help me improve my project. If you have any ideas or feedback that you'd like to share, please don't hesitate to reach out.

## 💖 Show your support

If you like this project, you can support me by giving a ⭐.

## 📜 License

This project is [MIT](./LICENSE) licensed.