Imagine This is a web application that allows users to generate images using text prompts.
- React
- Express
- OpenAI API
- User-friendly interface
- Instant image generation
Try out the live version on ImagineThis Website
To run this app on your local machine, follow these steps:
- Clone this repository into your desired project folder.
cd my-project
git clone git@github.com:IndieCoderMM/imagine-this.git .
- Install dependencies in
client/
andserver/
directories.
cd client && npm install
cd ../server && npm install
- Create
.env
file insideserver/
folder and add your OpenAI_API_KEY.
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.
- Run the development server.
cd server && npm run dev
- Inside
client/src/App.js
, setAPI_URL
to"/openai/imagine"
. - Start the application.
cd client && npm start
I am always looking for ways to improve my project. If you have any suggestions or ideas, I would love to hear from you.
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.
If you like this project, you can support me by giving a ⭐.
This project is MIT licensed.