Skip to content

Boilerplate setup for building a Node.js RESTful API server with restify

Notifications You must be signed in to change notification settings

daver208/restify-base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

restify-base

Boilerplate setup for building a Node.js RESTful API server with restify.

Included

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.

Usage

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.

  1. Customize the package.json file with appropriate name, version, and dependency versions.
  2. Install dependencies: npm install -d
  3. Run it: npm start

Testing

There is an example of testing the example route in the test directory. Run all test specifications with mocha using: npm test

About

Boilerplate setup for building a Node.js RESTful API server with restify

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published