/n9-micro-starter

REST API with TypeScript & n9-node-mico

Primary LanguageTypeScript

No longer actively maintained

n9-micro-starter

REST API with TypeScript & n9-node-micro

Travis Coverage

Installation

git clone --depth 1 git@github.com:neo9/n9-micro-starter.git
cd n9-micro-starter/
npm install

You need also to remove the git history and start a new one:

rm -r .git/
git init

Development

npm run dev

Server will listen on port 6686 (configurable via src/conf/application.ts) and will restart on changes.

Logs

To configure the logs, use log option in your config file, see n9-node-log to see the available options.

Production

npm run build
npm start

The build output is configurable via tsconfig.json, default output to ES2015 to work on node >= 6.

Linting

npm run lint

Configurable via tslint.json.

Tests

npm test

The tests are made with ava, please note that every test is run in parallel for maximum speed.