Guide
- Essentials
- Installation
- Introduction
- Context
- Payloads
- Command Line
- CLI
- Initialize
- Generate
- Directory Structure
- Tree
- Authentication
- Authorization
- Context
- Handlers
- Internal
- Middleware
- Models
- Design File
- design.json
- Models
- Models
- Concerns
- Concerns
- Examples
- TODO's
- Meta
- Meet the Team
Tree
An example design-first directory tree is given, below. Each individual subdirectory and its purpose are discussed in further sections.
my-first-api
│   .gitignore
│   package.json
│   .env.example
│   design.example.json
│   ts.config.json
│
└src
    │   server.ts
    │
    └authentication
    │   │
    │   └{service}
    │   │   │
    │   │   └{action}
    │   │   │   │   index.ts
    │   │   │
    │   │   └{...}
    │   │
    │   └{...}
    │
    └authorization
    │   │
    │   └{service}
    │   │   │
    │   │   └{action}
    │   │   │   │   index.ts
    │   │   │
    │   │   └{...}
    │   │
    │   └{...}
    │
    └context
    │   │
    │   └app
    │   │   │   index.ts
    │   │
    │   └routes
    │       │   index.ts
    │       │
    │       └{service}
    │       │   │
    │       │   └{action}
    │       │   │   │   index.ts
    │       │   │
    │       │   └{...}
    │       │
    │       └{...}
    │
    └handlers
    │   │
    │   └{service}
    │   │   │
    │   │   └{action}
    │   │   │   │   index.ts
    │   │   │
    │   │   └{...}
    │   │
    │   └{...}
    │
    └internal
    │   <NOT SHOWN - DO NOT EDIT>
    │
    └middleware
    │   │    app.ts
    │   │
    │   └{service}
    │   │   │
    │   │   └{action}
    │   │   │   │   index.ts
    │   │   │
    │   │   └{...}
    │   │
    │   └{...}
    │
    └models
        │   index.ts
    Caught a mistake or want to contribute to the documentation?
    
      Edit this page on GitHub!
    
  
