Setu-TS
    Preparing search index...
    • Creates a fully wired microservice application. The factory registers the curated microservice plugin set (REST + messaging, queue, resilience, telemetry), adds the error-handler middleware at priority 0 (outermost per exceptions contract), and returns the un-started application.

      The caller adds routes and then calls await app.start({ port }).

      Parameters

      Returns IKernelApplication

      An IKernelApplication ready for route registration.

      import { createMicroserviceApp } from '@setu-ts/microservice-starter';

      const app = createMicroserviceApp();
      app.router.get('/hello', (ctx) => ctx.response.text('Hello world'));
      await app.start({ port: 3000 });