This subject is an introduction to web development with React. The goal is to recreate a minimal ChatGPT interface, using OpenAI API.
- Clone the repository
- Install Node.js (> 20) and pnpm (> 8)
- Install dependencies with
pnpm install - Create a new OpenAI API key add it to the
.envfile (copy.env.example) - Run
pnpm devto start the development server
All the code should be written in App.tsx. The AppSolved.tsx file is an
example solution for reference.
The subject should be solved with the components provided in src/components
and the hooks provided in src/hooks.