# Getting Started

1. Clone repository

```
git clone git@github.com:eylonmiz/react-gpt.git
```

2. Change to the project directory

```
cd react-gpt
```

3. Get an OpenAI [API Key](https://platform.openai.com/account/api-keys)
4. 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
```

5. Install dependencies

```
yarn install
```

6. Run Backend Script - This script generates the componenets

```
yarn backend:dev
```

7. Run Frontend App to see your components in action

```
yarn frontend:dev
```

8. Open frontend/main/src/GenReactApp.tsx

```
Read the instructions and change the example component to the component you generated
```

9. Read Project Customization Section

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

### <br>
