This is a lookup table service which serve configuration close lists building with Nodejs and Typscript.
-
eslint configuration by @map-colonies/eslint-config
-
prettier configuration by @map-colonies/prettier-config
-
jest
-
.nvmrc
-
Multi stage producton-ready Dockerfile
-
commitlint
-
git hooks
-
logging by @map-colonies/js-logger
-
OpenAPI request validation
-
config load with node-config
-
Tracing and metrics by @map-colonies/telemetry
-
github templates
-
bug report
-
feature request
-
pull request
-
github actions
-
on pull_request
-
LGTM
-
test
-
lint
-
snyk
Checkout the OpenAPI spec here
Install deps with npm
npm install
npx husky install
Clone the project
git clone https://link-to-project
Go to the project directory
cd my-project
Install dependencies
npm install
Start the server
npm run start
To run tests, run the following command
npm run test
To only run unit tests:
npm run test:unit
To only run integration tests:
npm run test:integration
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-app
spec:
replicas: 1
selector:
matchLabels:
app: my-app
template:
metadata:
labels:
app: my-app
spec:
initContainers:
- name: clone-repo
image: alpine/git
command:
- /bin/sh
- -c
- git clone https://github.com/username/my-app.git /app
volumeMounts:
- name: app-code
mountPath: /app
containers:
- name: my-container
image: my-app:v1
volumeMounts:
- name: app-code
mountPath: /app
volumes:
- name: app-code
emptyDir: {}