From 0a5f0a518ddc7ec45ca6ccb67e5282c1427eac1c Mon Sep 17 00:00:00 2001 From: Nicolau Duran Date: Fri, 20 Oct 2017 13:18:21 +0200 Subject: [PATCH] Add development doc --- README.md | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index b010b880e4..c44337dca4 100644 --- a/README.md +++ b/README.md @@ -72,18 +72,22 @@ createuser -s -P ofn ``` Create the development and test databases, using the settings specified in `config/database.yml`, and populate them with a schema and seed data: - - rake db:setup - +``` +bundle exec rake db:setup +``` Load some default data for your environment: - - rake openfoodnetwork:dev:load_sample_data - +``` +bundle exec rake openfoodnetwork:dev:load_sample_data +``` At long last, your dreams of spinning up a development server can be realised: - - rails server - - +``` +bundle exec rails server +``` +To login as Spree default user, use: +``` +email: spree@example.com +password: spree123 +``` ### Testing Tests, both unit and integration, are based on RSpec. To run the test suite, first prepare the test database: