This project will set up the basic structure for restify including setting up a YAML configuration file, logging with bunyan, and testing with mocha and supertest. The server will spawn a worker for each CPU using node's cluster module.
package.json
is set up to use forever to manage processes, so npm start
and npm stop
will run forever to start the server.js
script. npm run-script list
will list out the forever processes that are running.
- Customize the
package.json
file with appropriate name, version, and dependency versions. - Install dependencies:
npm install -d
- Run it:
npm start
There is an example of testing the example route in the test
directory. Run all test specifications with mocha using: npm test