This is what do you need to run this project locally:
-
Install and setup a Docker environment (Engine + Compose) following these instructions
-
Install Node.js
Suggestion: install nvm (Node Version Manager) and then install node v0.12.7 by running
$ nvm install 0.12.7
- If everything is installed correctly you can run this to start docker images from this project root
$ docker-compose up
It'll create and start containers for each item on docker-compose file
Add the flag -d
to this command to run it in backgroud. To stop the services run
$ docker-compose stop
- Install all dependencies by running the following command on project root
$ npm install
- Run this to start server
$ npm run start
$ npm install
$ npm test
Travis build will execute $ npm run travis
, so environment variables can be used exclusively for CI, depending on the needs
To shrinkwrap an existing package:
- Run npm install in the package root to install the current versions of all dependencies.
- Validate that the package works as expected with these versions.
- Run npm shrinkwrap, add npm-shrinkwrap.json to git, and publish your package.
To add or update a dependency in a shrinkwrapped package:
- Run npm install in the package root to install the current versions of all dependencies.
- Add or update dependencies. npm install --save each new or updated package individually to update the package.json and the shrinkwrap. Note that they must be explicitly named in order to be installed: running npm install with no arguments will merely reproduce the existing shrinkwrap.
- Validate that the package works as expected with the new dependencies.
- Commit the new npm-shrinkwrap.json, and publish your package.
You can use npm-outdated to view dependencies with newer versions available.
Reference: npm-shrinkwrap documentation.