GithubHelp home page GithubHelp logo

maxidragon / quizonrails Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 741 KB

Simple quiz app built with Rails and React

License: GNU General Public License v3.0

Ruby 53.42% HTML 0.37% JavaScript 0.27% CSS 0.01% TypeScript 45.47% Shell 0.47%

quizonrails's Introduction

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

quizonrails's People

Contributors

maxidragon avatar dependabot[bot] avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.