Running the app locally (w/o Docker):
Requirements: ruby 2.6.2, rails 5.2.2, Postgres
- Clone this repo
- Copy
.env.exampleto.env.development - Copy app secrets from shared Dashlane.app secure note into
.env.development - Create a local postgres database (dev & test)
- Create a local postgres user:
CREATE USER psycle_admin; ALTER USER <user> WITH SUPERUSER;GRANT ALL PRIVILEGES ON DATABASE <db> TO <user>;- Make sure the database creds match those in
.env.development - Run
bundle install - Run
rails g spree:install --user_class=Spree::User(say "no" to all overwrites) - Run
rails g spree:auth:install(say "no" to all overwrites) - Run
rails g spree_gateway:install - Run
rake db:schema:load - Run
rake db:seed - Run
rake spree_sample:load - Run
rails s
If you need to reset your local DB:
- Run
rake db:reset - Run
rake railties:install:migrations - Run
rake db:migrate - Run
rake db:seed - Run
rake spree_sample:load
Other things we may need to cover:
-
Ruby version
-
System dependencies
-
Configuration
-
Database creation
-
Database initialization
-
How to run the test suite
-
Services (job queues, cache servers, search engines, etc.)
-
Deployment instructions
-
...