/firebase-pub-sub

Google firebase function on pub sub

Primary LanguageJavaScriptApache License 2.0Apache-2.0

Environmental Setup

Required softwares:

Visual Studio Code

Installation Instructions

- Visual Studio Code

Download the Visual Studio Code using below link
https://linuxize.com/post/how-to-install-visual-studio-code-on-ubuntu-18-04/

Required packages:

node
npm
firebase tools
java
- Node:npm
$ sudo apt-get update

$ sudo apt-get install build-essential libssl-dev curl

$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash

$ source ~/.bashrc

$ nvm install 16.13.0

To check node version:

$ node -v
$ npm -v
- firebase tools
$ npm install -g firebase-tools

Check the version of the tools. If your version is older, upgrade the tools by issuing the same "npm" command above.

$ firebase --version
- java

Install Java version 11 or higher

firebase init emulators firebase emulators:start

firebase deploy --only functions

firebase deploy --only functions:onCreateUser