Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/mandarinets/mvc-framework/engine/mandarineMvcFrameworkStarter.ts>MandarineMvcFrameworkStarter

Mandarine.TS is a typescript, decorator-driven framework that allows you to create server-side applications. Mandarine.TS provides a range of built-in solutions such as Dependency Injection, Components, ORM and more. Under its umbrella, Mandarine.TS has 4 modules: Core, Data, Security and MVC, these modules will offer you the requirements to build a Mandarine-powered application.
Latest
class MandarineMvcFrameworkStarter
import { MandarineMvcFrameworkStarter } from "https://deno.land/x/mandarinets@v2.3.2/mvc-framework/engine/mandarineMvcFrameworkStarter.ts";

This class works as the MVC engine and it is responsible for the initialization & behavior of HTTP requests. It handles the initialization of controllers, routes, repository proxys, entity manager and others. This class is the Mandarine Compiler since it is the most important class for the MVC framework to work as it resolves everything it needs

Constructors

new
MandarineMvcFrameworkStarter(callback?: Function)

Properties

private
essentials: { sessionMiddleware: SessionMiddleware; }
private
internalMiddlewareManager: MiddlewareManager
private
logger: Log
private
router: Router

Methods

private
addPathToRouter(
router: Router,
routingAction: Mandarine.MandarineMVC.Routing.RoutingAction,
controllerComponent: ControllerComponent,
): Router
private
executeUseGuards(guards: Array<GuardTarget | Function>, context: Mandarine.Types.RequestContext)
private
executeUserMiddlewares(
preRequestMiddleware: boolean,
middlewares: Array<Mandarine.Types.MiddlewareComponent | NonComponentMiddlewareTarget>,
context: Mandarine.Types.RequestContext,
): Promise<boolean>
private
postRequestInternalMiddlewares(context: Mandarine.Types.RequestContext): void
private
preRequestInternalMiddlewares(
context: Mandarine.Types.RequestContext,
routingAction: Mandarine.MandarineMVC.Routing.RoutingAction,
controllerComponent: ControllerComponent,
): void