Skip to content

Latest commit

 

History

History
55 lines (46 loc) · 875 Bytes

README.md

File metadata and controls

55 lines (46 loc) · 875 Bytes

Node REST Example Travis Status

A simple bootstrap Node REST api example using Koa micro framework and Sequelize ORM.

As default this example use sqlite3.

Requirements

Node.js 6.x

Installation

npm install

Run Build

npm run build

Run Tests

npm test

Run App (Dev mode)

npm run dev

Run App

npm start

API

Will be available on http://localhost:3000

GET /healthcheck
{
  service: true,
  database: true
}
GET /persons
[
  {
    id: 1,
    firstName: "John",
    lastName: "Hancock",
    createdAt: "2016-07-26T19:59:25.253Z",
    updatedAt: "2016-07-26T19:59:25.253Z"
  }
]