@jsonql/koa
v0.9.0
Published
This is the all in one package to start your jsonql project with Koa, jsonql-koa, jsonql-ws-server and more
Downloads
3
Readme
jsonql Koa server
This is an all in one setup to have your jsonql API server setup in no time.
It includes:
- Koa
- bodyparser, cors middleware
- jsonql-koa middleware
- OptionalDependencies jsonql-ws-server
- 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