backframe
v2.3.1
Published
Library for building REST API's for expressjs
Downloads
17
Keywords
Readme
Backframe is a javascript library for declaratively creating REST APIs for Express. Express is a great tool for building lightweight web and application servers, but it leaves almost all of the implementation to the developer. When building REST API's, this usually ends up requiring the developer to write a lot of tedious and repetitive code. Backframe provides simple, declarative tools for building REST APIs.
Installation
npm install --save backframe
Usage
Backframe is a great tool for rapidly creating performant REST APIs for your web or mobile application
import express from 'express'
import Backframe from 'backframe'
import Kittens from from 'app/models/kittens'
// initialize backframe
const backframe = Backframe()
// create a resource
const kittens = backframe.resources({
model: Kittens
})
const app = express()
// mount backframe within express
app.use(backframe.router({
routes: kittens
}))
app.listen(3000)
Author & Credits
Backframe was originally written by Greg Kops and is based upon his work with Think Topography, Funkhaus and The Cornell Cooperative Extension of Tompkins County