Skip to content

Latest commit

 

History

History
61 lines (31 loc) · 1.07 KB

README.md

File metadata and controls

61 lines (31 loc) · 1.07 KB

QuizMaster

Explanation

This is a small app using Ruby on Rails as an API and a frontend written with React.js

Ruby / Rails Version

Ruby 2.3.1 Rails 5.0.0

Setup

This project has two parts, the Ruby on Rails API and the React.js frontend so each part must be setup seperately

API setup

git clone https://github.com/drewpterry/QuizMaster.git

cd QuizMaster/api

bundle install

rails db:migrate RAILS_ENV=development

rails s

Visit localhost:3000 on your browser and you should see a "Yay! You're on Rails!" page

Please keep this running while you set up the frontend.

Frontend Setup

From the QuizMaster directory:

cd frontend

npm install

npm run dev

Visit localhost:8020 on your browser and you should see the QuizMaster homepage

Finished!

You're done! You've now got the frontend successfully using the Rails API!

Testing

Rspec and Rails

bundle exec rspec

Mocha and React

npm run test

Other comments / considerations

This was the first time I've ever used React, it was very fun but also very challenging!