REST API with TypeScript & n9-node-micro
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
npm run dev
Server will listen on port 6686
(configurable via src/conf/application.ts
) and will restart on changes.
To configure the logs, use log
option in your config file, see n9-node-log to see the available options.
npm run build
npm start
The build output is configurable via tsconfig.json
, default output to ES2015 to work on node >= 6
.
npm run lint
Configurable via tslint.json
.
npm test
The tests are made with ava, please note that every test is run in parallel for maximum speed.