Download and install nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bashcd into the project directory and run
nvm usethat will install the appropriate version of node as defined in the .nvmrc file
then you can run the following which will enable yarn
corepack enableand now you can start the extension via
yarn && yarn startTo test locally with docker-compose run
docker-compose -f docker-compose.local.yml upYou could also use the Dockerfile to deploy to production, but it currently requires you have all your secrets in a .env file while you probably want to use a secret store for secrets outside of your local environment. You can generate a .env from your secret store during your build, but even better if you are transiently setting secrets in the context of the cloud task and role under which each instance is operating (so secrets are never persisted to a .env file in your docker image)
Alternatively you can easily deploy to Heroku. Working procfiles are already provided. Heroku has great guides on deploying node applications so I won't go into further details here.
the motivations for developing this project are the following
- reduce the friction to starting a new project
- build a foundation for the next project I will be working on - a secure messaging system for educational institutions using a distributed architecture