This is a example Node.JS API to send notifications from FCM.
1 - Add your user to "topic" topic.
2 - Add your serviceAccountKey.json
file.
3 - Run npm i
to install the packages.
4 - Run npm run dev
to start the server.
5 - You can go to your /
path or you can post to your server via cURL eg. to send notification.