Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tranphuquy19/rails_test_online

Web thi trắc nghiệm online sử dụng FW Ruby on Rails
https://github.com/tranphuquy19/rails_test_online

Last synced: 2 days ago
JSON representation

Web thi trắc nghiệm online sử dụng FW Ruby on Rails

Awesome Lists containing this project

README

        

# README

## Demo here: https://youtu.be/InPNwIIf4TE

## Installation guide

```shell
curl -L https://get.rvm.io | bash -s stable --ruby
source /home/$USER/.rvm/scripts/rvm # activate ruby enviroment
rvm install ruby-2.6.1 # install ruby version 2.6.1 <- this project uses ruby v2.6.1
gem install rails
git clone https://github.com/tranphuquy19/Rails_Test_Online.git
cd Rails_Test_Online
bundle install
rails db:create
rails db:migrate
rails seeder:all # seed the data <- run `rails -h` to get all commands
rails test_online:setAdminByEmail[[email protected]] # choose the user wiith email [email protected] as the admin account
rails server # start server
```

## Shortcut

`rails db:drop && rails db:migrate && rails seeder:all && rails test_online:setAdminByEmail[[email protected]] && rails server`