Skip to content

A Simple API to handle Firebase Admin Capability for Cloud Messaging and Other features

Notifications You must be signed in to change notification settings

dita-dev-team/my-portal-api

Repository files navigation

Build Status

Setup Instructions

1. Under Folder api, Create a subdirectory named config

2. Download the json api key file from firebase and 
   place it in the above created subdirectory

3. npm install

4. Run npm start   

Available Endpoints

/api/v1/client/access-token - Generates AccessToken

/api/v1/send - Sends FCM Message


Sample Request Body

  
  
  api/v1/send
   
 {
   "messageTopic": "debug",
   "messageBody":"Test",
   "messageTitle": "Still a Test"
 } 

Running Tests

npm test

To run all tests

npm run test-single test/parser.test.js

To run a single test.

About

A Simple API to handle Firebase Admin Capability for Cloud Messaging and Other features

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published