mission-control-service
A helper to create new services for mission-control.
Last updated 2 months ago by capevace .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install mission-control-service 
SYNC missed versions from official npm registry.

mission-control-service

A helper to create new services for mission-control.

Installation

npm install mission-control-service --save

Usage example

const service = require('mission-control-service');

service(
	'test-service', // name of service
	{
		defaultConfig: {
			// overwrite some config in here
			// you can also do so in the config files that will be generated for the service
		},
	},
	service => {
		service.app.get('/', service.requireAuth, (req, res) => res.send('Hello World'));

		// An authenticated socket
		ioAuth(socket => {

		});

		// A normal, unauthenticated socket
		io.on('connection', socket => {

		})
	}
)

Release History

  • 0.0.1
    • Released for testing

Authors

Lukas Mateffy – @Capevacemateffy.me

Distributed under the MIT license. See LICENSE for more information.

Contributing

  1. Fork it (https://github.com/capevace/PROJECT/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

Current Tags

  • 0.0.1                                ...           latest (2 months ago)

1 Versions

  • 0.0.1                                ...           2 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (12)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |