JSPM

  • Created
  • Published
  • Downloads 10
  • Score
    100M100P100Q51344F
  • License MIT

Method-oriented layer for modern web ( Facebook api inspired )

Package Exports

  • methor

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (methor) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Methor

NPM download License

Nodejs web application framework inspired by Facebook API

http://methor.clgt.io

Example

Install

$ npm install methor --save

USAGE

const Methor = require('methor')
const path = require('path')
const app = new Methor({
  port: 3004,
  methods: {
    user
  },
  created(port, server) {
    console.log('app started at port %d', port)
    this.get('/logout', (req, res) => {
      res.end('ahihi do ngok')
    })
  }
})
// app.get, app.post, ... many features
// curl http://localhost:3004/restserver?method=user.login