https://www.freecodecamp.org/news/how-to-write-a-production-ready-node-and-express-app-f214f0b17d8c/
express-ts-template
src
├───config
├───features
│ └───feature
│ ├───index.ts # exports routes, controllers, services, models
│ ├───feature.controller.ts # controllers called in routes
│ ├───feature.model.ts # handle database access
│ ├───feature.routes.ts # handles incoming traffic
│ ├───feature.service.ts # business logic between controller and database access
│ └───feature.test.ts # test various aspects of feature
├───middlewares
└───utils
Testing is done using the Jest framework.