Node.js Firebase Cloud Messaging Push notification manager ready to deploy to Google Cloud App Engine developed for the Cleanse Project.
The script needs two files on the project folder in order tu run correctly
- serviceAccountKey.json
- connection.properties
This file can be downloaded through the Firebase Console after you configure the project
This file needs the following syntax
api.key=FIREBASE_WEB_API_KEY
database.url=YOUR_FIREBASE_DATABASE_URL
In order to test your implementation, run node app.js
(requires prior installation of Node.js)
Once the project is already configured for deployment, and Google Cloud SDK is configured on your machine, just run gcloud app deploy
on the project folder
- Install node and npm packages
- Run
npm install
on the project directory - Edit the cleanse-fcm.service with the appropiate paths
- Copy the file to
/etc/systemd/system
, enable and start the service