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 install
to install the dependencies. - Run
npm start
to start the application.
To get this application running in production:
- Run
npm install
to install the dependencies. - Ensure an appropriate
.env
file is bundled and is correctly configured for the cloud. - Run
npm start
to start the application.
- Run
npm run dev
to 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-image
to run the container.