This is a quiz taking application very similar to the popular quizzing application Kahoot! Most notable features include ability to add any quiz with or without supporting images, authentication system, ability to save high score and ability to share quiz results on social platforms such as Twitter. It is built using Ruby on Rails and developed following the Test Driven Development technique.
Throughout the course of development, over 40 integration and unit tests using Capybara, Selenium and RSpec were written. Overall, this project has over 95% test coverage so as to minimize bugs and errors.
- Ruby 2.x
- Ruby on Rails 6.x
This web application can run on any modern browser such as Google Chrome, Firefox, Safari etc...
- Create env file
- Create Google Cloud Platform project
- Get Gmail Account credentials
- Run project locally
- Go to
{PROJECT_FOLDER}\config
and createapplication.yml
in it
- Go to https://console.cloud.google.com/projectcreate
- Create project
- In GCP Navigation Menu select "IAM & Admin" > "Service Accounts"
- Select your recently created project at Project Selection screen
- Click "Create Service Account" in following screen
- Fill in service account details and download JSON file
- Place JSON file OUTSIDE of project repo and copy it's absolute path to the clipboard
- add this key/value pair:
GCP_KEYFILE_PATH: "your\path\to\keyfile.json"
to your{PROJECT_FOLDER}\config\application.yml
file
- Add your Gmail account's email address and password to
{PROJECT_FOLDER}\config\application.yml
in the following format:
GMAIL_USERNAME: "YOUR_EMAIL_ADDRESS"
GMAIL_PASSWORD: "EMAIL_PASSWORD"
- Clone project and
cd
into project folder - Run command
bundle install
to install all dependencies - Start development server via
bin/rails server
Please feel free to contribute to this project however possible by forking this repo, making changes and initiating pull requests. Thanks!