Update the project id and key file path in both publisher & subscriber files Install dependencies npm install To publish a message npm run publish To receive the messages npm run watch