Skip to content

Backend Architecture

Benson Cho edited this page Mar 21, 2024 · 9 revisions

We will be using express as the main framework and tsoa as a framework to abstract away some manual processes such as:

  • Route creation (All done in controllers)
  • Authentication middleware
  • Request validation
  • Documentation (Done through annotations)

This means that for the backend we will need to focus on writing:

response-models: Typescript interfaces which describe what response data will be returned request-models: Typescript interfaces which describe what data is expected in the request models of DTOs: Typescript interfaces which describe the shape of data services: Typescript classes which perform operations that are consumed by controllers controllers: Typescript classes annotated using tsoa to describe the behavior of routes

Clone this wiki locally