This service is responsible for dispatching notifications to mobile clients.
Install dependencies:
yarn
First, you will need to download service account key json file for this app's Google Cloud Project, which is currently celo-mobile-org. Add that file as serviceAccountKey.json
in the /config
folder.
Next, run this task to build, configure, and start the service:
yarn start:local
To find a web3 provider for an environment, run
kubectl get svc -n alfajores --context gke_celo-testnet-production_us-west1-a_alfajores
then look for the external IP for one of the tx nodes, for example alfajores-service-0
.
Deploy your app. The project will be built automatically by Google Cloud Build:
yarn deploy -n {ENVIRONMENT}
Current supported environments are production, integration, staging-argentina
App Engine will first run npm run gcp-build
to build the project then npm run start
to start it.
Keep that in mind if you are making changes to those tasks.