A simple Firebase function to register mobile phone devices to AWS SNS. Act as a proxy between phone and AWS SNS to prevent storing keys inside the application directly.
- Node.js ^16.x
- AWS account
- Firebase project
- Firebase CLI
npm install -g firebase-tools
First, copy the environment variables template file and fill in the values.
cp .env.example .envThen, install the dependencies.
npm installIf you are deploying for the first time, you need to login to Firebase first.
firebase loginThen, deploy the function and enjoy 😄
firebase deployTo test simply launch the function locally using the firebase tools.
firebase emulators:start