Skip to content
A simple bootstrap Node REST api example
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
test
.babelrc
.gitignore
.travis.yml
README.md
TODO.txt
package.json

README.md

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"
  }
]
You can’t perform that action at this time.