This package has been deprecated

Author message:

this package has been deprecated

@blended/starter

1.0.0 • Public • Published

Build Status

starter

A rest API framework on top of koa

Getting started

$ npm install starter --save

Then setup your application as follows:

// app.js
import starter from 'starter'
import models from './api/models'
import env from './config/env'

let app = starter(env)

export default app

if (require.main === module) {
  let port = process.argv[2]
  models(env.db).then(db => {
    app.db = db
    app.run(port)
  })
}

and run it with node app.js [port]. If no port is set the app will run on port 3000.

Developing

$ yarn install

Test

$ yarn test

Readme

Keywords

none

Package Sidebar

Install

npm i @blended/starter

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • andreeh