How to use the nodal.my 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 / server.js View on Github external
daemon.start(function(app) {

    app.listen(Nodal.my.Config.secrets.port);

  });
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);

}
github keithwhor / nodal / src / db / main.js View on Github external
'use strict';

const Nodal = require('nodal');
const db = new Nodal.Database();

db.connect(Nodal.my.Config.db.main);

module.exports = db;

nodal

An API Server and Framework for node.js

MIT
Latest version published 1 year ago

Package Health Score

48 / 100
Full package analysis