includes:
- 3 user types - admin, user, supply partner
- user and supply partner can log in only to api
- admin manages all data
You will need:
ruby
(2.3.1)mysql
redis
(to store users api sessions)
-
Correct database.yml and redis.yml:
$ cp config/database.yml.example config/database.yml $ cp config/redis.yml.example config/redis.yml
-
Run bundler:
$ bundle
-
Prepare a database:
$ rake db:setup
-
Run rails server:
$ rails s
$ RAILS_ENV=test rake db:create
$ RAILS_ENV=test rake db:schema:load
$ rspec spec/