This is a quiz game built in React with a Rails backend and ChatGPT for generative content creation. Players can select answers until they find the correct one, upon which they'll be given a link to the next question until the end. Includes seed file with ten mind-bending riddles.
To run this application, you need to be running:
- Ruby 3.3.0
- Node.js v21.2.0
- Yarn 1.22.19
- Postgres 14.9
- An active OpenAI account with credits
- Install the gems with
bundle install - Install yarn packages with
yarn install - Create a copy of the environment variable file with
cp .env.example .env - Assign your desired postgres username and password to
PG_DATABASE_USERNAMEandPG_DATABASE_PASSWORDrespectively, and your Open AI API key toOPENAI_API_KEYin.envfile - Run
rails db:create - Run
rails db:migrate - Run
rails db:seed - Start the server with
bin/dev - enjoy ;)