Skip to content

Who Wants to Be a Millionaire? game made with Ruby on Rails

Notifications You must be signed in to change notification settings

Godlikefreq/khsm

Repository files navigation

Description

Famous game "Who Wants to Be a Millionaire?". If you wish to have some nostalgia - just install this game on your PC, play and have fun!

Supported features

  • Registration&Authorization (Devise)
  • Admin (to upload new questions/answers)

Setup

  1. Required Ruby (v. 3.1.2) & Rails (v. 7) installed on your PC.
  2. Clone application to local PC:
git clone git@github.com:Godlikefreq/khsm.git
  1. Run
bundle install

Database setup

  1. To specify database name, adapter and other parameters for different scopes change it in config/database.yml. Default DB adapter is PostgreSQL (Install PostgreSQL on Ubuntu 20.04).
  2. Make new database (Create DB in PostgreSQL).
  3. Run
bundle exec rails db:migrate

Run locally

  1. To run application on your local machine run following command in console:
rails s
  1. Open http://localhost:3000/ in your browser.

Upload new questions

  1. Create new user (Registration URL)
  2. Make user admin:
  • open console in app's folder
rails c
  • find your recently created user:
u = User.last
  • make user admin:
u.is_admin=true

Sources

  • Powered with Bootstrap 5
  • Made and tested on Ruby 3.1.2 & Rails 7

About

Who Wants to Be a Millionaire? game made with Ruby on Rails

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published