Mandarine.TS
Latest
Latest
  • Mandarine.TS
  • Getting started
    • Installing Deno Runtime
    • Setting up Environment
    • Quick Example
  • Concepts
  • Mandarine Project Structure
  • Mandarine CLI
    • CLI Reference
      • mandarine new
      • mandarine generate
      • mandarine run
  • Mandarine Core
    • Core Initialization
    • Mandarine.json
    • Dot env file
    • Properties
      • The @Value Decorator
    • Components
      • Controller
      • Middleware
      • Repository
      • Component
      • Service
      • Configuration
      • Manual Component
    • Dependency Injection
      • Accessing DI container
    • Resource Handlers
      • Resource Handler Registry
      • Resource Handler
      • Resource Resolver
  • Mandarine MVC
    • Web MVC
    • Controllers
      • Routes
        • Parameterized Routes
      • HTTP Handlers
      • @ResponseStatus
    • Custom Middleware
    • Session Middleware
    • CORS Middleware
    • Template Engine
      • @Render Decorator
      • Accessing data from template
    • Launching web-app
    • Serving Static Content
    • Multipart Form Data
  • Mandarine Security
    • Sessions
  • Mandarine Data
    • ORM
      • Data source
      • Models
      • Repositories
        • Interacting with data
        • Updating data
    • Mandarine Query Language
  • Resources
    • Changelog
  • Plugins
    • Optional
    • Promise Repeater
Powered by GitBook
On this page
  • Typescript configuration
  • Deno configuration

Was this helpful?

Getting started

PreviousMandarine.TSNextInstalling Deno Runtime

Last updated 4 years ago

Was this helpful?

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

Typescript configuration

In order to run a Mandarine-powered application, a 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

for more information about entry-point files.

Deno
tsconfig.json
Click here