How to use the nodal.Application function in nodal

To help you get started, we’ve selected a few nodal examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github keithwhor / nodal / src / cluster.js View on Github external
'use strict';

const Nodal = require('nodal');
const cluster = require('cluster');

if (cluster.isMaster) {

  const daemon = new Nodal.Daemon();
  daemon.start(Nodal.my.Config.secrets.port);

} else {

  const app = new Nodal.Application();
  app.listen(Nodal.my.Config.secrets.port);

}

nodal

An API Server and Framework for node.js

MIT
Latest version published 2 years ago

Package Health Score

45 / 100
Full package analysis