function createFullStackApp
createFullStackApp(options?: FullStackStarterOptions): IKernelApplication

Creates a fully wired full-stack application. The factory registers the curated full-stack plugin set (microservice + cache, events, cqrs, scheduler, audit, secrets, storage, mail), 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 }). Gated arms (featureFlags, notifications, multiTenancy, reactRouter) are only registered when explicitly provided in options.

Examples

Example 1

import { createFullStackApp } from '@setu-ts/full-stack-starter';

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

Parameters

optional
options: FullStackStarterOptions

Optional per-plugin configuration.

Return Type

IKernelApplication

An IKernelApplication ready for route registration.

Usage

import { createFullStackApp } from "starters/full-stack-starter/src/index.ts";