- Web Server - any application listen and accept HTTP request and send back HTTP response.
- Route - part of the URL and the HTTP method that point to specific end-point function
ts-nodea tool to run TypeScript in NodeJS.ts-node-deva tool to watch and run typescript apps.expressweb frameworkmochatests runnerchaiasserts librarysupertestexpress route assert libraryts-mock-importsmocking utility
baseUrlcompile all TypeScript files under this directoryesModuleInteropmake sure we can import CommonJS as ESM in TypeScript
index.ts is our application entry point. Any async operation should be done at this point.
app.ts the express application (top level router).
config application configuration module.
db postgres connection module