Skip to content

Admin website and Database Migrations

Notifications You must be signed in to change notification settings

Beeper-Buzz/Beeper-Admin

 
 

Repository files navigation

Material Instinct LLC - DNA Boilerplate for Admin UI

Running the app locally (w/o Docker):

Requirements: ruby 2.6.2, rails 5.2.2, Postgres

  1. Clone this repo
  2. Copy .env.example to .env.development
  3. Copy app secrets from shared Dashlane.app secure note into .env.development
  4. Create a local postgres database (dev & test)
  5. Create a local postgres user: CREATE USER psycle_admin;
  6. ALTER USER <user> WITH SUPERUSER;
  7. GRANT ALL PRIVILEGES ON DATABASE <db> TO <user>;
  8. Make sure the database creds match those in .env.development
  9. Run bundle install
  10. Run rails g spree:install --user_class=Spree::User (say "no" to all overwrites)
  11. Run rails g spree:auth:install (say "no" to all overwrites)
  12. Run rails g spree_gateway:install
  13. Run rake db:schema:load
  14. Run rake db:seed
  15. Run rake spree_sample:load
  16. Run rails s

If you need to reset your local DB:

  1. Run rake db:reset
  2. Run rake railties:install:migrations
  3. Run rake db:migrate
  4. Run rake db:seed
  5. 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

  • ...

About

Admin website and Database Migrations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 56.9%
  • Ruby 41.1%
  • JavaScript 1.9%
  • CSS 0.1%