- Postgresql installed on your system
- Ruby 2.4.1 installed on your system
- 'Books' application cloned and set up
- Clone it from https://github.com/visualitypl/security-workshop-app
- Go to the app directory
cd security-tutorial
- If you don't have bundler installed, run
gem install bundler
- Install gems
bundle install
- Go to the
config/database.yml
config file and config the database. There may be your postgres username and password needed if the default configuration doesn't work. - Create and migrate the database
rake db:create && rake db:migrate
- Seed the database with sample data
rake db:seed
- Run rails server
rails server
- Don't analyze the code, simply follow the instructions :)