On OSX:
brew update
brew install mongodb
brew install imagemagick
Install rbenv and ruby-build
The following is provided by the rails_config
gem.
Config entries are compiled from:
config/settings.yml
config/settings/#{environment}.yml
config/settings.local.yml
config/settings/#{environment}.local.yml
Settings defined in files that are lower in the list override settings higher. All *.local.yml
files can be created per
developer because they are .gitignored
. All settings can be accessed through the globally defined Settings
object.
Default settings are defined in config/settings.yml
.
To run all tests
rspec
rake db:seed
defaults:
- Username: [email protected]
- AdminUser: [email protected]
- Password: demo12345
foreman start -f Procfile.dev
This runs rails s -p 3000
and guard
Once the server is running you can view the api docs at http://localhost:3000/docs/ which should contain all the configruation options.
Also note the api has been made with Grape, Swagger, Grape-swagger
heroku create heroku addons:add mongohq #Some reason production assets are needed heroku labs:enable user-env-compile heroku config:set DEVISE_SECRET_KEY=random36pluscharstring GENERAL_SECRET_KEY=random36pluscharstring