An example of a modern containerised REST API using typescript, express and tsoa.
Using tsoa, you can define your REST endpoints with routes and controllers using decorators, and it will automatically generate the OpenAPI spec for you.
This will automatically watch for changes and restart the server.
But, it does not pick up changes in the swagger.json
file. You need to run npm run build:tsoa
to update the swagger.json file.
npm run dev
npm run build:tsoa
docker build -t typescript.futurum.express .
docker run -p 3002:8080 typescript.futurum.express