Skip to content

Mono-repo for the Tupaia project, mapping health data across the Pacific

License

Notifications You must be signed in to change notification settings

beyondessential/lesmis-tupaia

Repository files navigation

Tupaia

This is a mono-repo

Packages

Main packages

Internal dependencies

See also https://docs.beyondessential.com.au/books/software-development/page/internal-dependencies

Getting started

Secrets

Most packages will require a .env file, which can usually be found in lastpass. Use the LOCAL entry if one exists for the package, otherwise use the DEV entry.

Dependencies

We use yarn workspaces to manage our packages, which allows us to run yarn once at the project root, and it will install dependencies everywhere.

CI/CD

We use codeship for the admin-panel, meditrak-server, web-config-server, and web-frontend packages.

For codeship to use our environment variables, we store them encrypted and committed to the repo as ci-env-vars.encrypted inside each package. In order to update an environment variable:

  • modify your local .env file
  • download the codeship encryption key (either from LastPass or codeship itself) and save as codeship.aes in the root directory
  • run yarn update-codeship-env-vars

Note that environment variables are also stored in AWS parameter store for new dev and feature deployments to pull from, so if you've updated the environment variables here, you probably also need to persist them across there

  • ssh into the aws instance (cannot be run locally at this stage)
  • update the .env file (if it hasn't been updated automatically by the CI/CD process)
  • run ENVIRONMENT=dev yarn update-paramater-store-env-vars (setting environment to either dev or production)

About

Mono-repo for the Tupaia project, mapping health data across the Pacific

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 87.1%
  • TypeScript 9.2%
  • PLpgSQL 2.2%
  • Python 0.7%
  • Shell 0.5%
  • HTML 0.2%
  • Other 0.1%