How to setup nr1 after you have cloned this repo:
-
set a new rails secret. Copy
config/secrets.yml.example
toconfig/secrets.yml
, and inconfig/secrets.yml
runrails secret
, copy and paste to development and testing. -
config to your instance of postgres Edit copy
config/database.yml.example
toconfig/database.yml
. If you use the Postgres App on mac os, you are good to go. If not, change values to what works for you. -
Run bundler:
bundle exec bundle
-
Initialize your postgres db:
bundle exec rake db:setup
or if your instance of Postges does not like db:setup,bundle exec rake db:create
and thenbundle exec rake db:migrate
and thenbundle exec rake db:seed
. -
Run the application:
rails s
-
Test the application:
bundle exec rake test
Output should look like:
Bobs-iMac-3:nr1 bobwalsh$ bundle exec rake test
Run options: --seed 32772
# Running:
...........
Finished in 0.436237s, 25.2157 runs/s, 48.1390 assertions/s.
11 runs, 21 assertions, 0 failures, 0 errors, 0 skips
- See tests re:
- the last N events for an org
- the last N events for a specific host within an org