See the deployed app
Link to React frontend
Trivia Night is an app that allows restaurants and bars to host their own team trivia night. Select question difficulty, number of questions, and enter as many teams as you want. Trivia Night will keep track of team score and reveal team rankings at the end!
Built with:
- Ruby on Rails
- React
- PostgreSQL
- RSpec
- HTML, CSS, BootStrap
- OpenTriviaDB API
1.) Clone both the rails backend and react frontend repos
2.) Make sure your ruby environment is at least 3.0.0
ruby --version
3.) Make sure your node version is at least 16.13.1
node --version
4.) bundle install
in rails folder:
gem install bundle
bundle install
5.) npm install
in react folder:
npm install
6.) Create and migrate databases
in rails folder:
bundle exec rake db:create && bundle exec rake db:migrate
7.) Start the development server
in rails folder:
rails s
in react folder:
npm run start
Note: answering "y" to the prompt will open the app on localhost:3001, since localhost:3000 is already being used by the rails backend
8.) Navigate to localhost:3001
- Add capability to present questions with multiple choice answers
- Create Question has many Responses relationship so users can see and edit previous responses to previous questions
- Add timer countdown clock
- Add ability to show/hide answer