University "tests generator" application in Ruby on Rails (example app for WEB course on Unicorn College)
Git Repository with project form lectures is at: https://github.com/Inza/ror-plantation-v2
You can generate the UML diagram at: https://www.planttext.com/
@startuml
enum Difficulty {
NORMAL
NIGHTMARE
HELL
}
Subject "1" <-- "n" Topic
Subject "1" <-- "n" Test
Topic "1" <-- "0..n" TopicAssignment
Test "1" <-- "0..n" TopicAssignment
Question "1" <-- "0..n" QuestionAssignment
Test "1" <-- "0..n" QuestionAssignment
Topic "1" <-- "n" Question
Question "1" <-- "0..n" Answer
Question "1" <-- "0..n" Difficulty
StudyProgram "1" <-- "0..n" SubjectAssignment
Subject "1" <-- "0..n" SubjectAssignment
@enduml
https://brew.sh/
brew install gpg
http://railsinstaller.org/
https://git-for-windows.github.io/
brew install git
https://rvm.io
xcode-select --install
2.4.2
by rvm install 2.4.2
2.4.2
in RVM and use it by default rvm use 2.4.2 --default
gem install bundler
gem install rails
2.4.2
and Rails 5.1.4
(on Windows Ruby 2.3.3
and Rails 5.1
)rails new my-app
cd my-app
2.4.2
into .ruby-version
(create file called .ruby-version
and type 2.4.2
into it - or 2.3.3
on Windows)Gemfile
bundle install
rails server
or rails s
0.0.0.0:3000
(on Mac/Linux) or localhost:3000
(on Windows) in your browser to see Rails homepage0.0.0.0:3000/tests
or 127.0.0.1:3000/tests
or localhost:3000/tests
in your browser to see the generated tests administration