Neighborhood bakery's CSA site
- postgres.app
- redis
$ bundle
$ yarn install --check-files
$ rails db:setup
Try loading the fixtures into your local development database so you have some data to play with
$ rails db:fixtures:load
$ rails fake_data:users
$ rails fake_data:orders
Copy the db from heroku to your local postgres
$ dropdb motzi
$ heroku pg:pull DATABASE_URL --app motzibread motzi
Download the menu images from s3
$ rake s3:download
$ rails server
Working on the react apps
$ ./bin/webpack-dev-server
$ npx jest -u
Debug js jest tests
$ node --inspect-brk node_modules/.bin/jest --runInBand -u test/javascript/menu/items.test.js
visit /letter_opener
to see emails sent by rails
User.find(SqlQuery.new(:spam_user_ids).execute.pluck("id")).each {|u| u.destroy!}