Skip to content

etdev/quiz_master

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QuizMaster

circleci

How to Run Locally

API Setup

From project root, change to api directory

cd api

Switch to ruby 2.3.1 via rbenv or similar

brew install rbenv
brew install ruby-build
rbenv install 2.3.1
rbenv local 2.3.1

Install gems

bundle install --path=vendor/bundle

Install and setup postgresql if not installed

brew install postgresql
...

Update config/database.yml if desired and create + migrate + seed the development database

bundle exec rails db:create
bundle exec rails db:migrate
bundle exec rails db:seed

Start server

bundle exec rails server

Client Setup

From project root, change to client directory

cd client

Install yarn

brew install yarn

Install project dependencies

yarn install

In /client/config/dev.env.js set the value of QUIZ_MASTER_API_HOST to your local API

Start dev server

yarn run dev

Visit http://localhost:8080 in a browser

Screenshots

image

Attributions

  • This project uses stock images from Pexels.
  • This project uses illustrations from Freepik.

Testing

Run API tests:

cd api
bundle exec rspec spec

Run client tests:

cd client
yarn run unit