- Install node & npm
- with NVM (a nice version manager): instructions
- or:
sudo apt-get install nodejs/brew install node
- Install nodemon
npm install -g nodemon(the-gmakes this a global installation -- system-wide, not specific to this app)
- Install jscs
npm install -g jscs(same deal with the-g)
- Clone the repository
- From the repository:
npm install(this pulls the dependencies from thepackage.jsoninto anode_modulesdirectory)nodemon(this starts a server which watches the files in the repository and restarts when they change)
- Browse to localhost:3000
- For an app dependency named
packagenpm install --save package(the--saveadds the package to the app'spackage.json)
- For a process / development dependency named
packagenpm install --save-dev package(the--save-devworks like--savebut only pulls the dependency down duringnpm installwhen we're in a development environment)
- From the repository:
- To run the test suite:
npm test - To lint:
npm run lint
- To run the test suite: