[](https://travis-ci.com/BookingBug/bookingbug-customer) [](https://badge.fur
npm install bookingbug-customer#### BookingBug Customer


1. Make sure you have a .env file containing
``
AWS_ACCESS_KEY_ID="key"
AWS_SECRET_ACCESS_KEY="key"
BB_CORE_SRC_DIR="/absolute/path/to/core-js"
BB_CONFIGURATOR_SRC_DIR="/absolute/path/to/configurator-js"
GITHUB_TOKEN="token"
BB_SLACK_TOKEN="token"
BB_SLACK_URL="url"
`
1. npm i or npm install will install all the dependencies.npm start
1. Simply run to start the application.npm start -- --local core --local configurator
You can pass a few options here
- will run the application using these modules locallynpm start
- if you then run without passing any local modules or if you pass different ones, the remaining ones willnpm start -- --port 8091
be reinstalled automatically from the remote specified in the package.json
- will run the server with the port... 8091!
1. npm run deploy -- --env development will deploy your application on /development/
You can't deploy to production, sorry.
1. you can deploy to staging as long as you are on the branch develop.npm run deploy -- --staging will do the magic
1. npm run release {version} will create a release on GitHub (and publish on npm if travis doesn't fail).npm run release minor
Pass the semantic version you want to release, npm run release patch, etc
> Please remember the -- syntax is necessary to pass params to npm scripts.
If you don't really like this syntax, you can try to use yarn which natively support the params
without the double dash
yarn run start --local core is equivalent to npm start -- --local core`
========================================================