Skip to content

RobinQu/datastack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DataStack

Build Status

NPM

Human-friendly RESTful middlewares for koa

TL;DR

Building your API like a pro:

var datastack = require("datastack"),
    koa = require("koa");

var app = koa();
datastack(app, {
  storage: {
    type: "mongodb",
    uri: "mongodb://127.0.0.1:27017/zoo"
  }
});
app.resource("cats");
app.resource("dogs");
app.listen(porcess.env.PORT || 8888);

And you can now have fully operational RESTful API (and more) against two different collections.

Philosophy

Fundalmentally datastack is a web middleware that is powered by koa and its friends. It targets to help you to quickly build up your RESTful API with minimun code. To understand what datastack really is, please read on the following topics:

Roadmap

License

MIT

About

Drop-in RESTful middlewares for koa

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published