kojoma / QuizMaster

0 stars 0 forks source link

QuizMaster

QuizMaster is an application, can play and manage quizzes.

System information

Setup Development Environment

  1. install docker

Please install docker to your computer.

ref: Docker docs

  1. clone git repository

Please git clone this repository.

  1. setup docker
$ cd /path/to/repository
$ docker-compose build
# Building docker image. Please wait several minutes...
  1. up docker
$ docker-compose up
  1. setup database
$ docker-compose exec web bin/rails db:create
$ docker-compose exec web bin/rails db:migrate
# if you want seed data, please execute db:seed command
$ docker-compose exec web bin/rails db:seed
  1. open application

Open http://localhost:3000 in your browser.

Application Usage

Manage Quiz

access /questions or clicked Manage Question navigation bar menu.

Play Quiz

  1. access /quiz or clicked Quiz navigation bar menu.
  2. Quiz is displayed randomly.
  3. Please input quiz answer, and click submit button.
  4. Display Correct or Incorrect, and displayed next quiz.

Unit Test

Use RSpec for unit testing.

$ docker-compose exec web bin/rails spec