How to use the daruk.Daruk function in daruk

To help you get started, we’ve selected a few daruk 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 darukjs / daruk / example / 04-timers / index.ts View on Github external
import { Daruk } from 'daruk';

const myApp = new Daruk('myapp', { rootPath: __dirname, debug: process.env.NODE_ENV === 'dev' });
const port = 1318;

myApp.run(port);
github darukjs / daruk / example / 01-helloWorld / index.ts View on Github external
import { Daruk } from 'daruk';

const myApp = new Daruk('myapp', { rootPath: __dirname, debug: process.env.NODE_ENV === 'dev' });
const port = 3000;

myApp.run(port);
github darukjs / daruk / example / 02-comments / index.ts View on Github external
import { Daruk } from 'daruk';

const port = 3000;
const myApp = new Daruk('my-comments-app', {
  rootPath: __dirname,
  debug: process.env.NODE_ENV === 'dev'
});

myApp.run(port);
github darukjs / daruk / example / 03-weather / index.ts View on Github external
import { Daruk } from 'daruk';

const myApp = new Daruk('myapp', { rootPath: __dirname, debug: process.env.NODE_ENV === 'dev' });

myApp.run(myApp.config.port);

daruk

a node.js web framework

MIT
Latest version published 4 months ago

Package Health Score

68 / 100
Full package analysis