Install the following:
- Clone the repo, then
cd path/to/repo
- You must acquire a
.env
file from the owner
- You can find that file here if you have access permission
- Download
env.txt
- Rename it to
.env
- Place it in the root of the repo
yarn
npm run build
npm start
NOTE: If your name is not Brendan McNamara, you should probably not be doing this.
- Get a copy of the web environmnt variable file (not committed with the repo)
- gcloud must be installed in your local environment and you must be logged into the infindi account
- Get a copy of the firebase admin certificate (not committed with the repo)
- In the web directory, run:
gcloud app deploy
NOTE: If your name is not Brendan McNamara, you should probably not be doing this.
- Get a copy of the worker environmnt variable file (not committed with the repo)
- gcloud must be installed in your local environment and you must be logged into the infindi account
- Get a copy of the firebase admin certificate (not committed with the repo)
- In the worker directory, run:
gcloud app deploy
- Navigate to local common / common-backend repo and run:
yarn link
- Navigate back to infindi-backend repo and run:
yarn link common # or common-backend
-
Make sure to run
npm run build
whenever adding changes to the common / common-backend code -
When done testing, run
yarn unlink
from common / common-backend
-
Test that multiple job workers can listen for job requests without: a. Grabbing the same request b. Skipping requests c. Working on the same request more than once
-
Test that a job worker that fails will mark the job as failed with the correct error payload.