# quture-app

> A modular expressjs & graphql loading framework

Latest version **2.1.1** (published 2017-07-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install quture-app
pnpm add quture-app
yarn add quture-app
bun add quture-app
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.1 |
| Published | 2017-07-26 |
| First published | 2017-07-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 14 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Kieron Wiltshire |
| Maintainers | kieronwiltshire |

## Links

- npm: https://www.npmjs.com/package/quture-app
- Repository: https://github.com/Quture/app
- Homepage: https://github.com/Quture/app#README
- Issues: https://github.com/Quture/app/issues
- npm.io page: https://npm.io/package/quture-app

## Dependencies (14)

- [cors](https://npm.io/package/cors.md) ^2.8.3
- [debug](https://npm.io/package/debug.md) ^2.6.8
- [helmet](https://npm.io/package/helmet.md) ^3.6.1
- [lodash](https://npm.io/package/lodash.md) ^4.17.4
- [morgan](https://npm.io/package/morgan.md) ^1.8.2
- [express](https://npm.io/package/express.md) ^4.15.3
- [fs-extra](https://npm.io/package/fs-extra.md) ^2.0.0
- [socket.io](https://npm.io/package/socket.io.md) ^2.0.3
- [body-parser](https://npm.io/package/body-parser.md) ^1.17.2
- [randomstring](https://npm.io/package/randomstring.md) ^1.1.5
- [cookie-parser](https://npm.io/package/cookie-parser.md) ^1.4.3
- [quture-config](https://npm.io/package/quture-config.md) ^2.1.1
- [serve-favicon](https://npm.io/package/serve-favicon.md) ^2.4.3
- [method-override](https://npm.io/package/method-override.md) ^2.3.9

## Recent versions

- 2.1.1 (latest) — 2017-07-26
- 2.1.0 — 2017-07-26
- 2.0.2 — 2017-07-26
- 2.0.1 — 2017-07-26
- 2.0.0 — 2017-07-25
- 1.8.1 — 2017-07-21
- 1.7.7 — 2017-07-21
- 1.7.6 — 2017-07-21
- 1.7.5 — 2017-07-20
- 1.7.4 — 2017-07-20
- 1.7.3 — 2017-07-20
- 1.7.2 — 2017-07-20
- 1.7.1 — 2017-07-20
- 1.7.0 — 2017-07-20
- 1.6.8 — 2017-07-19
- … 35 more at https://npm.io/package/quture-app/versions

## README

# 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](http://quture.readthedocs.io/en/latest/).

### Basic usage

```JavaScript
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
```

---
_Source: https://npm.io/package/quture-app · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
