Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/indiecodermm/imagine-this
- Owner: IndieCoderMM
- License: mit
- Created: 2023-01-14T14:21:37.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-10T09:20:25.000Z (almost 2 years ago)
- Last Synced: 2025-01-16T00:05:30.716Z (about 1 month ago)
- Topics: express, image-generator, openai-api, react
- Language: JavaScript
- Homepage: https://indiecodermm.github.io/imagine-this/
- Size: 5.72 MB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.

## 🛠 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.
[](https://github.com/IndieCoderMM)
[](https://twitter.com/hthant_oo)
[](https://linkedin.com/in/hthantoo)
[](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.