Skip to content

A simple quiz application using a Ruby on Rails API and a React frontend

Notifications You must be signed in to change notification settings

drewpterry/QuizMaster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

A simple quiz application using a Ruby on Rails API and a React frontend

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages