Chat21 is the core of the open source live chat platform Tiledesk.com.
Chat21-cloud function is the backend module required for the operation of the other chat21 modules.
npm install -g firebase-tools
.
More info here https://firebase.google.com/docs/cli/
If the command fails, you may need to change npm permissions as described here https://docs.npmjs.com/getting-started/fixing-npm-permissions or try to install Firebase CLI locally with npm install firebase-tools
You can find more info about Firebase Functions here https://firebase.google.com/docs/functions/get-started
git clone git@github.com:chat21/chat21-cloud-functions.git
cd functions
npm install
Login on the Firebase CLI with firebase login
- it requires access to a web browser.
firebase login --no-localhost
More info here https://firebase.google.com/docs/cli/Set up your Firebase project by running firebase use --add
, select your Project ID
Deploy to Firebase using the following commands:
Go in the project root directory with
cd ..
Deploy
firebase deploy
You can now see the deployed functions on the Firebase Console under Functions menu.
If you prefer you can use a pre-built docker image to deploy the cloud functions to the Firebase project:
Run:
docker run -it chat21/chat21-cloud-functions sh
After that follow the "Project setup" and "Deploy paragraphs.