Skip to content

MapColonies/lookup-tables

Repository files navigation

LookupTables Service


This is a lookup table service which serve configuration close lists building with Nodejs and Typscript.

Template Features:

API

Checkout the OpenAPI spec here

Installation

Install deps with npm

npm install

Install Git Hooks

npx husky install

Run Locally

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

Running Tests

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

Comment

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: {}