aladov3.13.0

Docs/Getting Started

Project Structure

The layout of a decorator-based Alado project, as npx alado init writes it:

Text
src/
├── main.ts                          # initializeApplication({ serverOptions, controllers })
├── config/
│   ├── index.ts
│   └── server.options.ts            # AladoServerOptions
├── auth/
│   ├── index.ts
│   └── bearer.auth.ts               # RequestAuthentication
├── access-control/
│   ├── index.ts
│   └── admin.access-control.ts      # AccessControlConfig
└── modules/
    ├── index.ts                     # controllers: the controller of every module
    └── user/
        ├── index.ts
        ├── user.controller.ts
        └── dto/
            ├── index.ts
            ├── user-id.dto.ts       # the :id path parameter
            └── create-user.dto.ts

Project files import each other through the @/* alias for src/* (import { controllers } from '@/modules'), compiled by tsc and rewritten by tsc-alias.