mission-control-service
v0.0.1
Published
A helper to create new services for mission-control.
Downloads
2
Readme
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 – @Capevace – mateffy.me
Distributed under the MIT license. See LICENSE
for more information.
Contributing
- Fork it (https://github.com/capevace/PROJECT/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request