Getting started

This page summarizes all the concepts you will need to know to start with Mandarine.TS. Here you will find the best practices for Mandarine & some of its requirements to run on Deno

Typescript configuration

In order to run a Mandarine-powered application, a tsconfig.json file is needed. Otherwise, Mandarine will fail at its compile time.

{
    "compilerOptions": {
        "strict": false,
        "noImplicitAny": false,
        "noImplicitThis": false,
        "alwaysStrict": false,
        "strictNullChecks": false,
        "strictFunctionTypes": true,
        "strictPropertyInitialization": false,
        "experimentalDecorators": true,
        "emitDecoratorMetadata": true,
        "allowUmdGlobalAccess": false,
    }
}

Note that you can add new properties to your tsconfig.json, but those mentioned before must remain as shown.

Deno configuration

In order to run Mandarine, you must pass --allow-net & --allow-read, and --config (Indicating your tsconfig.json file path) flags in your Deno command. For example:

deno run --config tsconfig.json --allow-net --allow-read entryPoint.ts

Click here for more information about entry-point files.

Last updated