Skip to content

phobcoOld/millionaire-game

Repository files navigation

Who Wants to Be a Millionare?

Ruby: 3.0.3 Rails: 6.1.4 Language: Russian

As part of the goodprogrammer.ru course.

About

Ruby on Rails version of the world-famous game Who Wants to Be a Millionare.

  • 15 Questions
  • 15 Difficulty levels
  • 3 Lifelines
    • 50:50 (Fifty-Fifty)
    • Phone a Friend
    • Ask the Audience
  • 3 Guarantee points
    • 1 000
    • 32 000
    • 1 000 000
  • 0 Mistakes

The application is covered with tests using: RSpec Capybara factory-bot

It is possible to recover the password from the account using e-mail.

Users with admin status can load questions.

Installation

  1. Clone repo
$ git clone git@github.com:phobco/millionaire-game.git
  1. Install gems
$ bundle
  1. Create database and run migrations (PostgreSQL database is used)
$ rails db:create
$ rails db:migrate
  1. Load demo questions
$ rails db:seed
  1. Start server
$ rails s

Open localhost:3000 in a browser.

Get admin status

Run Rails console

$ rails c

Find the user's id by name

> User.pluck(:id, :name)
# => [[1, "phobco"]]

Find User by id and set attribute is_admin to true

> User.find(1).update(is_admin: true)

Admin panel is now available.

Live demo

Who Wants to Be a Millionaire (wait about 10 seconds for the server to start)

About

Who Wants to Be a Millionaire? Popular game made with Ruby On Rails.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published