@jsonql/koa

0.9.0 • Public • Published

jsonql Koa server

This is an all in one setup to have your jsonql API server setup in no time.

It includes:

  1. Koa
  2. bodyparser, cors middleware
  3. jsonql-koa middleware
  4. OptionalDependencies jsonql-ws-server
  5. OptionalDependencies jsonql-socketio-server (coming soon)

Quick start

const jsonqlKoaServer = require('@jsonql/koa')

jsonqlKoaServer({
  autoStart: true,
  port: 3000
})

That's it.

CLI

You can also use the command line jsonql-koa-cli, it's better install this globally.

$ jsonql-koa-cli /path/to/config.json

If you don't supply the config file, then it will just all the default options to start the server.

Configuration

TBC


MIT (c) 2020 NEWBRAN LTD / TO1SOURCE CN

/@jsonql/koa/

    Package Sidebar

    Install

    npm i @jsonql/koa

    Weekly Downloads

    1

    Version

    0.9.0

    License

    MIT

    Unpacked Size

    8.96 kB

    Total Files

    9

    Last publish

    Collaborators

    • joelchu
    • to1source