BookingBug Customer
Requirements
-
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"
-
npm i
ornpm install
will install all the dependencies. -
Simply run
npm start
to start the application. You can pass a few options herenpm start -- --local core --local configurator
will run the application using these modules locally- if you then run
npm start
without passing any local modules or if you pass different ones, the remaining ones will be reinstalled automatically from the remote specified in the package.json npm start -- --port 8091
will run the server with the port... 8091!
-
npm run deploy -- --env development
will deploy your application on /development/. You can't deploy to production, sorry. -
you can deploy to staging as long as you are on the branch
develop
.npm run deploy -- --staging
will do the magic -
npm run release {version}
will create a release on GitHub (and publish on npm if travis doesn't fail). Pass the semantic version you want to releasenpm run release minor
,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 tonpm start -- --local core
========================================================