- Install Leiningen - be sure to get version 2.
- Ruby and Bundler
- MySQL >= 5.5
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:
- Start the server
$ lein run
- http://localhost:8080 in the browser
- Sign in with Google
- The system will show your Google UID.
- Copy the UID and run this script to create a super user:
$ lein run -m stockroom.task.super-user <UID>
- Refresh the page
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