Skip to content

Lucas-zz/Midjourney

Repository files navigation

OpenAI logo

Write what you want and let the AI show you the image!

Status: Finished

This is a React.js project bootstrapped with Vite.

AboutHow It WorksTech StackPre-requisitesAvailable ScriptsHow to contributeLearn MoreAuthor


About

This project was my first time interacting with AIs!

With the boom of OpenAI's ChatGPT and DALL • E 2 I got really curious about this technology so new and yet so great at the same time, so I ended up trying to make a really simple clone of Midjourney!

OpenAI's image generation API were used on this project.

This project's backend is available here.


How It Works

Right off the bat, the Home page is shown when entering the web app. In there, the Community Showcase is available - showing all the images in the database. On hover, the prompts used to generate that image, name of the person that made the prompt and a button that allows the user to download the image are shown.

OpenAI logo

To be able to interact with the API, you need to click on the button at the top right side of the screen 'Create'. By blicking on the button, the user is redirected to the Create Post page.

OpenAI logo

In this page, the user can fill in the form fields with their name and the prompt that they want to be make a image of or simply click on the 'Surprise Me' button to get a random prompt. Following that, by clicking on Generate, the API will return an AI generated image.

The user can decide if they want to share that image with the community or not or simply make the prompt again to get a better image.

Be aware, to be able to download the image, it is needed to share it with the community first.


Tech Stack

The following tools were used in the construction of this application:

See the file package.json

Workspace


Pre-requisites

Before you begin, you will need to have the following tools installed on your machine: npm, Git, VSCode.

Intial configs

// Clone this repository
$ git clone https://github.com/Lucas-zz/Midjourney.git

// Access the project folder cmd/terminal
$ cd Midjourney

// Install the dependencies
$ npm install

After this, you can start using the scripts below.


Available Scripts

In the project directory, you can run:

npm run dev or npx vite

Runs the app in the development mode.
Open http://localhost:5173 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm run build or npx vite build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about building for production for more information.

npm run preview or npx vite preview

Once you've built the app, you may test it locally by running npm run preview command.

The preview command will boot up a local static web server that serves the files from dist at http://localhost:4173. It's an easy way to check if the production build looks OK in your local environment.

Learn More

You can learn more in the Vite documentation.

To learn React, check out the React documentation.


How to contribute

  1. Fork the project.
  2. Create a new branch with your changes: git checkout -b feat/myFeatureName
  3. For each feature implemented, make a commit specifying what was done
  4. Submit your changes: git push -u origin feat/myFeatureName

Author


Lucas Azzolini Vieira

About

Midjourney App clone - An App to transform raw text into AI generated images using OpenAI's DALL-E.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published