Tech details:
- Ruby: 2.5.0
- Rails: 5.2.0
- Postgresql: 9.5
Steps to run:
- Install ruby
2.5.0
(from source or rvm, both works) - Install bundler for the ruby:
gem install bundler
- Run
bundle install
- Install
postgresql
database(if not installed already) or connect with remote database by updatingdatabase.yml
file - Update
database.yml
file with corresponding credentials of the database user you want to use - Run
rails db:setup
orrake db:setup
- Run
rails s
orrails server
- Open browser and visit
localhost:3000
(orlocalhost:[port_defined_by_you]
)
Steps to run tests
- Go to project directory
- Run
rspec -f documentation spec/
(-f documentation
is for output format as documentation. You may try other options too.)