Skip to content
API Boilerplate in Restify and CoffeeScript
CoffeeScript API Blueprint
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
src
test
.editorconfig
.gitignore
.travis.yml
CHANGELOG.md
CONTRIBUTE.md
LICENSE
Procfile
README.md
apiary.apib
package.json

README.md

Node Restify CoffeeScript Boilerplate

Boilerplate built on Node.js, Restify, CoffeeScript for building APIs

Build Status Coverage Status Dependencies

Usage

Prerequisites

Install packages as the following:

$ npm install -g coffee-script coffeelint mocha

Configuration

The global configuration file is located in ./config/global.yaml

The defaults should be sufficient in any developer environment, however you may want to change the parameters in production environments.

Environmental Variables

The current variables are also for configuration besides the global configuration file

  • PORT (optional): TCP port where the API will listen (default: 5000)

Running

The API can be started with the following:

$ npm start

Testing

Run unit and end-to-end tests with the following:

$ npm test

Misc

The boilerplate can be compiled into pure JavaScript with the following command:

$ npm run build

This will compile CoffeeScript to JavaScript into the lib/ directory

Documentation

API Blueprint

Blueprint is available on Apiary

The documentation is rendered from the apiary.apib file from this repository

Live API

This boilerplate application is running on Heroku

$ curl http://node-restify-coffee.gaborszathmari.me

{"message":"Hello World!"}

Contribute

Pull requests are welcome

Check CONTRIBUTE.md for more details

Contributors

Credits

This project was inspired by the following boilerplates:

The project was first featured on the Rainbow and Unicorn security blog

License

See the LICENSE file for license rights and limitations (MIT)

You can’t perform that action at this time.