2.1.1 • Published 7 years ago
quture-app v2.1.1
quture-app
A package to create GraphQL apis in seconds
Introduction
The package exports a default class that loads Quture
based plugins.
Documentation can be found here.
Basic usage
const path = require('path');
const Config = require('quture-config');
const Quture = require('quture-app');
let application = new Quture({
rootDir: __dirname
});
// Get the router
let router = application.getRouter();
router.get(function(req, res, next) {
let ctx = router.getContext(req); // It is possible to get the context of the global router
res.json({
hello: "world"
});
});
// Creating a router
let customRouter = application.createRouter(); // This is simply an express router with some added functionality such as a context
router.get(function(req, res, next) {
let ctx = router.getContext(req); // It is possible to get the context of the custom router
});
// Bootstrap the application
let expressApp = application.bootstrap();
// This will return an express application with an error handler and everything
// already applied.
// Do what you want with this express application.
// Look at `quture-bootstrap` if you want to instantly bootstrap a web server
2.1.1
7 years ago
2.1.0
7 years ago
2.0.2
7 years ago
2.0.1
7 years ago
2.0.0
7 years ago
1.8.1
7 years ago
1.8.0
7 years ago
1.7.7
7 years ago
1.7.6
7 years ago
1.7.5
7 years ago
1.7.4
7 years ago
1.7.3
7 years ago
1.7.2
7 years ago
1.7.1
7 years ago
1.7.0
7 years ago
1.6.8
7 years ago
1.6.7
7 years ago
1.6.6
7 years ago
1.6.5
7 years ago
1.6.3
7 years ago
1.6.2
7 years ago
1.6.1
7 years ago
1.6.0
7 years ago
1.5.7
7 years ago
1.5.5
7 years ago
1.5.4
7 years ago
1.4.4
7 years ago
1.4.3
7 years ago
1.4.2
7 years ago
1.4.1
7 years ago
1.4.0
7 years ago
1.3.9
7 years ago
1.3.8
7 years ago
1.3.7
7 years ago
1.3.6
7 years ago
1.3.5
7 years ago
1.3.4
7 years ago
1.3.3
7 years ago
1.3.2
7 years ago
1.3.1
7 years ago
1.3.0
7 years ago
1.2.9
7 years ago
1.2.8
7 years ago
1.2.7
7 years ago
1.2.6
7 years ago
1.2.4
7 years ago
1.2.3
7 years ago
1.2.2
7 years ago
1.1.2
7 years ago
1.0.2
7 years ago
1.0.1
7 years ago
1.0.0
7 years ago