🥳Getting Started

  1. Clone repository

git clone git@github.com:eylonmiz/react-gpt.git
  1. Change to the project directory

cd react-gpt
  1. Get an OpenAI API Key

  2. Set OPENAI_SECRET_KEY in backend/main .env file (see .env.example) or run the script below

echo OPENAI_SECRET_KEY="INSERT_YOUR_OPENAI_SECRET_KEY_VALUE_HERE" >> backend/main/.env
  1. Install dependencies

yarn install
  1. Run Backend Script - This script generates the componenets

yarn backend:dev
  1. Run Frontend App to see your components in action

yarn frontend:dev
  1. Open frontend/main/src/GenReactApp.tsx

Read the instructions and change the example component to the component you generated
  1. Read Project Customization Section

Read the Project Customization Section to learn how to customize and operate the project

Last updated