Skip to main content
Module

x/mandarinets/mod.ts>Mandarine

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
namespace Mandarine
import { Mandarine } from "https://deno.land/x/mandarinets@v2.3.2/mod.ts";

This namespace contains all the essentials for mandarine to work Gnerally, global functionings are added to this namespace in order to be easily accesible across Mandarine

Namespaces

Refers to the Application Context. The application context is used to manipulate elemental behaviors of Mandarine It is a singleton class

Contains the different properties different stereotypes/components take

Contains the default information Mandarine needs to work.

Handles the interaction with the global environment of Mandarine Mandarine uses a global environment to store and manipulate essential information to work

Refers to all the elements part of the core.

Enums

List of all recognizable mandarine components.

List of all native components by Mandarine

Functions

Get the Components' registry from Mandarine's global environment

Get the entity manager to manipulate the current DB connection

Get the properties mandarine is using. If no properties are set by the user then it gets the default properties.

Read .env file located under the current working directory and adds its values to Deno.env

Get the global environment based on interface @MandarineGlobalInterface

Get the properties (MandarineJsonProperties) from mandarine.json

Get the list of registered middlewares Middleware are added to the global environment in order to not request the DI container every time there is an HTTP Request

Get the resource handler registry for incoming requests.

Get the instance of the Session Container

Get the entity manager to manipulate the current DB connection

Initializes the Session Container. The session container is used to determine the configuration of Mandarine's sessions

Initializes Mandarine Global Environment.

Initializes the middleware list in the global environment.

Initializes the middleware list in the global environment.

Initializes the core modules of Mandarine's security core.

Set a new configuration for the mandarine properties If properties are ignored, it will set the default values.

Interfaces

Stats/Metadata of Mandarine's core. This includes information such as: When Mandarine was started, number of templates, controller, and others.

Interface used by the ApplicationContext class. Such class contains the necessary bridges for Mandarine's core to work

Interface that provides with the necessary fields for configuration in a Mandarine-powered component stereotype of Catch

Interface that provides with the necessary fields for configuration in a Mandarine-powered component stereotype of Middleware

${MY_VAR} will be considered an environmental reference. The environmental reference will be parsed by CommonUtils.getEnvironmentalReferences and CommonUtils.getEnvironmentalReferences will return an array of EnvironmentalReference

Contains all the Global objects that Mandarine uses

Refers to the essentials of a component class for the Mandarine Engine.

Contains the metadata information of the component. This information is initialized when a component decorator is used

Refers to the context of the component inside the DI container. When a request is made to the DI container, this is what the request returns.

Refers to the Components' Registry The components' registry is used to communicate the mandarine engine & DI layer This is possibly the most important class for mandarine to work. All components are registered inside this class

Handlers the information of a resource handler that will be processed.

Refers to the resource handler registry. All the resource handlers either initialized by the user or by Mandarine will be located here.

Refers to the templates' registry. All the templates that are read and initialized at mandarine compile time are registed inside the templates registry When an user requests a renderable endpoint, the templates' registry will get requested in order to get the template.

List of necessary fields for a Native Component

Properties used by the native components registry. This interface provides mandarine with the management of native components in the core.

Structure for mandarine.json If mandarine.json is present, some behaviors of the Mandarine starter can be altered such as the location of the properties.json file

Structure of Mandarine Properties. Mandarine uses these properties to determine how it should work Custom Properties must extend Mandarine.Properties