This is a simple template for quick-starting an Express microservice/application using Typescript. The goal here is to have a clean starting template with no warnings, no vulnerable dependencies, etc.
To keep it easily extensible, the only functionality that this project starts with is an index API and an accompanying test. This endpoint is documented below.
To get this application running locally:
- Run
npm installto install the dependencies. - Run
npm startto start the application.
To get this application running in production:
- Run
npm installto install the dependencies. - Ensure an appropriate
.envfile is bundled and is correctly configured for the cloud. - Run
npm startto start the application.
- Run
npm run devto start the application in live-updating development mode.
Run npm test to run tests.
| Route | Method | Response |
|---|---|---|
/ |
GET | Returns OK if the application is running successfully |
-
Run
docker build -t template-image .to build the image. -
Run
docker run --rm --name template template-imageto run the container.