Skip to content

maxidragon/QuizOnRails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QuizOnRails

QuizOnRails is a simple quiz app built with Rails API and React. In the production environment, the application uses the MySQL database, in the development SQLite.

Development

You can run application in two ways, with Docker or directly with Ruby and React.

Running with Docker

Assuming you have Docker and Docker Compose installed, you can start all parts of the application by running

docker compose up

Running directly with Rails and React

You can run application directly with Ruby and Node.js

Requirements

  • NodeJS (version 20.6.1 or later)
  • Ruby
  • Rails (version 7.0.8 or later)

Clone this repo and navigate into it

git clone https://github.com/maxidragon/QuizOnRails
cd QuizOnRails

Setup backend

  • Navigate into backend directory
cd backend
  • Install dependencies
bundle install
  • Run migrations & setup dev database
bin/rails db:create db:migrate
  • Run backend server
bin/rails server

The server will be accessible at localhost:4000

Setup frontend

  • Navigate into frontend directory
cd frontend
  • Install dependencies
npm install
  • Run frontend server
npm start

The server will be accessible at localhost:3000

Tests

  • Frontend tests (you must be in frontend directory)
npm test
  • Backend tests (you must be in backend directory)
bundle exec rspec

About

Simple quiz app built with Rails and React

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages