nodejs-stack
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Node-Stack

Obtener node-stack con NPM:

npm install node-stack

Crear el archivo server.ts y agregar el siguiente contenido:

import { Controller, Config, LoggerFactory, App } from 'Nodejs-Stack';

const controller = Controller.on('/', () => {
  return { hello: 'world' };
});

const config = Config.create();

const loggerFactory = LoggerFactory.create({ config });

const app = App.create({
  config,
  loggerFactory,
  controllers: [controller],
});

void app.start();

/nodejs-stack/

    Package Sidebar

    Install

    npm i nodejs-stack

    Weekly Downloads

    0

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    132 kB

    Total Files

    60

    Last publish

    Collaborators

    • dgustavocj