CAITSGet started

CAITS documentation

CAITS makes full-stack TypeScript apps on Marko and Vite, with a Clean Architecture already decided, and one command, npm run check, that holds every change to it.

Start here

  1. Get started: create an app, and see every check pass.
  2. The architecture: the parts of an app, where their files go, and how each one is tested.
  3. Your first feature: add a button to the example app, test first, from the browser to the server.

Then each page below does one job: build a part of the app, fix a check, change a rule, or look something up.

Build

  • A backend use case 

    A command or a query: its DTOs, its handler, its controller, its route, and their tests.

  • The domain 

    Entities, value objects and errors: the business rules, and how they are tested.

  • Ports and adapters 

    A port, its contract, its adapters, the bindings, and the tests of each.

  • A frontend use case 

    The loop of the frontend: the events, the store, the handler, the view, and their tests.

  • Contexts 

    A new part of the business, the context shared, and the events between contexts.

  • Pages and routes 

    The pages that place views, the routes of the API, the documents, and the end-to-end tests.

  • Styles 

    The stylesheets of the app, of a page and of a view, the names of the classes, and the fonts.

Maintain

Reference

  • Architecture rules 

    The rules that npm run lint:architecture checks, each with what it asks.

  • Files and names 

    Each kind of file, where it goes and its test, the test helpers, and the shortcuts of the imports.

  • Commands 

    The scripts, the commands of CAITS and the options of init, the variables, and the reports.

  • Glossary 

    The words of CAITS, each with a short definition.