Giter Site home page Giter Site logo

trivia's Introduction

Assumptions for app
  • A round of trivia has 10 Questions
  • All questions are multiple-choice questions
  • Data for questions are provided in a local JSON file.
  • A user can view questions.
  • Questions with their multiple choice options must be displayed one at a time.
  • Questions should not repeat in a round.
  • A user can select only 1 answer out of the 4 possible answers.
  • The correct answer must be revealed after a user has submitted their answer
  • A user can see the score they received at the end of the round
Additional Features
  • Answers will be shuffled every round.
  • Questions will appear in a random order every session.
  • There is real time updates with stimulusjs.
  • The score will increment depending on if your answer is correct and change color.
  • Button will change color based on the answer and if its incorrect will then highlight the correct question.
Setup Prerequisites

The setup steps expect the following tools to be installed on the system.

1. Check out the repository
git clone https://github.com/yunggindigo/trivia.git
2. Bundle and create database
  bundle
  rails db:create
3. Install the yarn packages for stimulusjs
yarn install --check-files
4. Start the Rails server

You can start the rails server using the command given below.

rails s

And now you can visit the site with the URL http://localhost:3000

View a live version of the app on heroku

trivia's People

Contributors

indigotechtutorials avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.