FCM Push engine
Server for FCM Admin
I am Node.js novice. But anyway it works!
Send messages via Admin FCM API!
This Application get messages from MS SQL DB, and send to individual devices.
Github Repository
LoveMeWithoutAll/FcmPushEngine
This app is using
- Node.js v8.12.0
- Microsoft SQL Server 2016
- Javascript library
- Admin FCM API v6.0.0
- mssql v4.2.1
- winston v3.1.0
- eslint v5.6.0
- pm2 v3.2.2
To run this app
- Set DB config on config/dbConfig.json
- Set FCM service account key on config/fcmServiceAccountKey.json
- Set FCM database URL on config/fcmConfig.json
- Write codes for get datas on service/db.js getPushList function
- Write codes for send push to devices on service/fcm.js sendMsgList funciton
- Write codes for push feedback on service/db.js pushFeedback function
Project setup
npm install -g pm2
pm2 install pm2-logrotate
npm install
Run
npm start
Lints and fixes files
npm run lint
Contributing
Changes and improvements are more than welcome! Feel free to fork and open a pull request.
License
This project is licensed under the MIT License
Leave a comment