Template for TS service
yarn
yarn start
The following environment variables can be used to configure the service:
PORT to set on which port the service should run (default: 3000)| Method | URL | Description | Response |
|---|---|---|---|
GET |
/hello |
Example API call | { hello: "world" } |
| Method | URL | Description | Response |
|---|---|---|---|
GET |
/db |
Returns the DB | {...} |
GET |
/clean |
Cleans the DB | {} |
To build the image:
docker build -t ts-service:latest .
docker run -d -p 3000:3000 ts-service:latest
For detailed documentation see the TypeDocs documentation.
Generated using TypeDoc