virtual-user-service

user service for same day care platform

Usage no npm install needed!

<script type="module">
  import virtualUserService from 'https://cdn.skypack.dev/virtual-user-service';
</script>

README

User Service

user service for same day care platform

Running locally

Prerequisites

  • Install Node.js
  • Install 1password cli
  • Install VS Code
  • Install This Docker Edge image
    • Make sure your version of kubectl is the right version
    curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.13.0/bin/darwin/amd64/kubectl
    
    chmod +x kubectl
    
    mv kubectl /usr/local/bin/kubectl
    
    kubectl version
    
    • Install Helm (2.14.1) this matches rookie
    curl -LO https://get.helm.sh/helm-v2.14.1-darwin-amd64.tar.gz
    
    tar -xzvf helm-v2.14.1-darwin-amd64.tar.gz
    
    chmod +x darwin-amd64/helm
    
    mv darwin-amd64/helm /usr/local/bin/helm
    
    helm init
    

setup

configure local k8s environment (Note: this only needs to be executed one time per machine)

./setup-kube-docker.sh -u <nexus username> -p <nexus password>

install dependencies

npm ci

start the app

start local k8s instance of user service

npm run start:local

see your pods in the ecp-user-local namespace

kubectl get pod -n ecp-user-local

**For local and PR environments, the namespace will include a pod for postgres. The data initialization is pulled from a docker image built from this Dockerfile