This is a trivia game built with Next.js and powered by the OpenAI ChatGPT API. The game will ask a series of questions indefinitely, right now there is mechanics to lose or win, it will just generate infinite questions. In order to make this project work, you need to get an OpenAI api key and set it as an enviroment variable as shown in .env.example file.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
Open http://localhost:3000 with your browser to see the result.