0.0.1 • Published 5 years ago

mission-control-service v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

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