Documentation: https://harrybournis.github.io/capstoned-api-documentation/
Trello: https://trello.com/b/ahb8alLZ/capstoneed-api
- Install ruby 2.4.1
- Run
gem install bundler
- Run
bundle update
- Run
bundle install
DEVELOPMENT_SECRET_KEY_BASE=<development key>
TEST_SECRET_KEY_BASE=<test key>
RAILS_MIN_THREADS=3
RAILS_MAX_THREADS=16
WEB_CONCURRENCY=3
APP_PRELOAD=true
Execute this in the project root to write to the crontab file the contents of the /config/schedule.rb file. See whenever gem.
whenever --update-crontab
Install the YARD gem.
gem install yard
Run yard
in the parent directory.
To generate coverage report with SimpleCov, run
COVERAGE=true rspec
in the parent directory.
Run in the parent directory:
rspec --require ./spec/formatters/test_result_formatter.rb --format TestResultFormatter
Take the generated doc_examples
folder and copy it in the /data
folder of in the documentation project.