-
-
Notifications
You must be signed in to change notification settings - Fork 729
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1919 from nicolauduran/add-dev-doc
Add more development documentation
- Loading branch information
Showing
1 changed file
with
14 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: [email protected] | ||
password: spree123 | ||
``` | ||
### Testing | ||
|
||
Tests, both unit and integration, are based on RSpec. To run the test suite, first prepare the test database: | ||
|