backframe

    2.3.1 • Public • Published
    Backframe Build Status Code Climate Code Coverage

    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.

    Read the overview

    Installation

    Install with npm or yarn:

    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)

    Learn more

    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

    Keywords

    none

    Install

    npm i backframe

    DownloadsWeekly Downloads

    0

    Version

    2.3.1

    License

    ISC

    Last publish

    Collaborators

    • ccetc
    • mahaplatform
    • mochini
    • thinktopography