Skip to content

Latest commit

 

History

History

README.md

Ottehr Backend

Backend endpoints for the urgent care application.

Setup

Before you can run locally or deploy, you must copy in the env files from the ottehr-secrets repository. These should be copied into .env/ (e.g. dev: .env/dev.json).

Run Locally

The backend is run locally using a small Express server.

Start up the local API Gateway + Zambda emulator with:

npm run start

In Case of Emergency

Single Zambda Deployment Process

These steps are kept here in case you need to deploy an individual zambda manually.

  1. Run npm run bundle. This will put deployment zips ready to be uploaded to the oystehr platform into the .dist/ folder.
  2. Go to the console you want to deploy to (i.e. console).
  3. Log in with the appropriate account previously used for 'One Time Setup'.
  4. Navigate to /zambdas on the console (i.e. console).
  5. Click on the zambda you are trying to update
  6. Click the button "Upload zambda.zip"
  7. Select the appropriate zip from the .dist/ directory.
  8. Click "Deploy using {zambda-name}.zip"
  9. Click the refresh icon and make sure the status is "Active"