Rails application to run the REST API of the HAppi application.
bundle install
rake db:migrate
rake db:seed
rails s
Install mailcatcher to intercept mails
gem install mailcatcher
Start the rails server with
rails s
Start sidekiq with
bundle exec sidekiq -q default -q mailers
And start the mailcatcher server with
mailcatcher
The mails can then be seen at http://localhost:1080/
The sidekiq dashboard can be seen at http://localhost:3000/sidekiq
The following environment variables are needed:
- MAILGUN_API_KEY
- MAILGUN_DOMAIN
- RAILS_ENV=production
- SENTRY_DSN
- WUNDERGROUND_API_KEY
- ELASTIC_URL
- DEPLOY_TASKS="db:migrate"
- DEVISE_SECRET_KEY
- To generate it, use
rake secret
- To generate it, use
- A Redis database is needed.
- A PostgreSQL database is needed.
rake db:test:prepare
rake spec
We can generate some kind of documentation using the Rpsec tests because we described them nicely.
rspec --format documentation --out rspec.txt