Skip to content

Commit

Permalink
updated instructions to mention the secrets.yml config, removed db ex…
Browse files Browse the repository at this point in the history
…ample developer credentials, readme updated
  • Loading branch information
interlock committed Jul 27, 2016
1 parent 2ca6cde commit b47f2af
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ A mini e-commerce application built with Rails 4.2 for purposes of teaching Rail
1. Fork & Clone
2. Run `bundle install` to install dependencies
3. Create `config/database.yml` by copying `config/database.example.yml`
4. Run `bin/rake db:reset` to create, load and seed db
5. Create .env file based on .env.example
6. Sign up for a Stripe account
7. Put Stripe (test) keys into appropriate .env vars
8. Run `bin/rails s -b 0.0.0.0` to start the server
4. Create `config/secrets.yml` by copying `config/secrets.example.yml`
5. Run `bin/rake db:reset` to create, load and seed db
6. Create .env file based on .env.example
7. Sign up for a Stripe account
8. Put Stripe (test) keys into appropriate .env vars
9. Run `bin/rails s -b 0.0.0.0` to start the server

## Stripe Testing

Expand All @@ -25,4 +26,3 @@ More information in their docs: <https://stripe.com/docs/testing#cards>
* Rails 4.2
* PostgreSQL 9.x
* Stripe

4 changes: 2 additions & 2 deletions config/database.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ default: &default
development:
<<: *default
database: jungle_development
username: development
password: development
# username: development
# password: development

# The specified database role being used to connect to postgres.
# To create additional roles in postgres see `$ createuser --help`.
Expand Down
3 changes: 3 additions & 0 deletions config/secrets.example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
development:
secret_token: "my_secret_token"
secret_key_base: "abcdef0123456789"

0 comments on commit b47f2af

Please sign in to comment.