Code Monkey home page Code Monkey logo

node-restify-coffee-boilerplate's Introduction

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.