Simple web app to test Firebase Cloud Messaging functionality. Adopted from https://github.com/firebase/quickstart-js/tree/master/messaging with some modifications. It can be useful to test Firebase Cloud Messaging functionality from your backend application.
See this documentation for the quickstart guide.
- Create a project on Firebase Console.
- Install Firebase CLI by running
npm install -g firebase-tools
. (Make sure you have Node.js and npm already installed). - Configure Firebase CLI credential using
firebase login
and follow the steps shown in the console. - Go to project directory and change the value of
default
property inside.firebaserc
file with the name of project you have created. - Run
firebase use [your firebase project ID]
to set current project with your Firebase Project. Project ID can be found in Firebase Console -> Project Settings -> General Tab. - Run
firebase server
to fire up a local server containing your project - or run
firebase deploy
to upload your project into Firebase Hosting. - After deploying into Firebase Hosting, you can access your project from URL
<your-project-name>.firebaseapp.com
.