mission-control-service

0.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i mission-control-service

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

11.4 kB

Total Files

8

Last publish

Collaborators

  • capevace