@forrestjs/core
TypeScript icon, indicating that this package has built-in type declarations

5.2.2 • Public • Published

@forrestjs/core

ForrestJS helps you build a Modular JavaScript Application where you can (almost) forget about the infrastructure and FOCUS ON YOUR BUSINESS VALUE.


Install & Setup

npm add @forrestjs/core

Quick Code Example

https://codesandbox.io/p/sandbox/service-fastify-th8dq?file=%2Fsrc%2Findex.js

const forrest = require('@forrestjs/core');
const fastify = require('@forrestjs/service-fastify');

forrest.run({
  // Add ForrestJS wrappers to famous and useful libraries
  services: [fastify],

  // Integrate your Business Logic with the running services
  features: [{
    target: '$FASTIFY_ROUTE',
    handler: {
      method: 'GET',
      url: '/',
      handler: async () => 'Hello World',
    },
  }],

  // Provide configuration to Services and Features
  settings: {
    fastify: {
      port: '8080'
    }
  }
]);

Documentation

Package Sidebar

Install

npm i @forrestjs/core

Weekly Downloads

1,712

Version

5.2.2

License

MIT

Unpacked Size

55.1 kB

Total Files

29

Last publish

Collaborators

  • marcopeg