https://github.com/node-ci/nci-express
express plugin for nci https://github.com/node-ci/nci
https://github.com/node-ci/nci-express
Last synced: 5 months ago
JSON representation
express plugin for nci https://github.com/node-ci/nci
- Host: GitHub
- URL: https://github.com/node-ci/nci-express
- Owner: node-ci
- License: mit
- Created: 2016-06-12T11:52:33.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-01-22T09:15:37.000Z (about 8 years ago)
- Last Synced: 2025-08-18T20:46:27.787Z (6 months ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nci-express
[](https://travis-ci.org/node-ci/nci-express)
[express](https://github.com/expressjs/express) plugin for [nci](https://github.com/node-ci/nci)
to simplify http related plugins development
## Installation
```sh
npm install nci-express
```
## Usage
Add this plugin to the `plugins` section at server config before any plugin that using it.
```yml
plugins:
- nci-express
- nci-plugin-with-express
```
Add this plugin to `peerDependencies` at your plugin package.json
Just use `app.express` as express instance
```js
exports.register = function(app) {
app.express.get('/some/route', function(req, res) {
res.json({ok: true})
});
};
```
Look at [nci-shields](https://github.com/node-ci/nci-shields) as example.
## License
[The MIT License](https://raw.githubusercontent.com/node-ci/nci-express/master/LICENSE)