Skip to content

Latest commit

 

History

History
60 lines (38 loc) · 861 Bytes

README.md

File metadata and controls

60 lines (38 loc) · 861 Bytes

Stockroom

Requirements

  • Install Leiningen - be sure to get version 2.
  • Ruby and Bundler
  • MySQL >= 5.5

Setup

To setup your environment:

$ bundle install
$ bundle exec rake db:setup
$ WAREHOUSE_ENV=test bundle exec rake db:setup

To add yourself as a super user locally:

  1. Start the server
$ lein run
  1. Sign in with Google
  2. The system will show your Google UID.
  3. Copy the UID and run this script to create a super user:
$ lein run -m stockroom.task.super-user <UID>
  1. Refresh the page

Development

To run the server in development mode:

$ lein run # run with development config

To run the tests:

$ lein spec

Some helpful scripts:

$ bundle exec rake -T