An open API service indexing awesome lists of open source software.

https://github.com/deployable/node-express-api-template

Express 4 API Template
https://github.com/deployable/node-express-api-template

Last synced: 12 months ago
JSON representation

Express 4 API Template

Awesome Lists containing this project

README

          

# Express API Template

An express based http api template

To install from `git`

git clone https://github.com/deployable/node-express-api-template#current

## Running the app

node app.js

### Running the coffescript app for development

The coffee script source can be run directly if you have the source from git

node appcoffee.js

## App config

The application config file is in `app/config.json`

- `http.port` The port the server listens on
- `http.address` The address the server listens on

### Git app config

From `git`, the application only comes with a default config file `app/config.json.default`

This needs to be copied to `app/config.json` as your local running config. Your running config will not be checked back into git.

$ cp app/config.json.default app/config.json
$ vi app/config.json

## Test

`mocha` and `superagent` are used to test the api.
Tests are written in coffeescript.