Here the client is as Google Chrome Extensions
It needs credential to use Google Cloud APIs, so we need to write key.json
for authenticating.
This document helps you to get credentials as json file.
and copy & paste it. (or send it)
$ vi key.json
{
"type": "service_account",
"project_id": "project-id",
"private_key_id": "some_number",
...
}
also copy our samples/node-configs.js to configs/index.js
, and fill in the fields.
$ mkdir app/backend/configs
$ cp samples/node-configs.js app/backend/configs/index.js
$ sudo apt install docker docker-compose -y
$ sudo docker build --tag node-app .
$ sudo docket-compose up -d
If you get "Hello World" when following command, it works fine.
$ curl http://localhost/
Hello World!
Preview with client for Google Chrome Extension
Youtube: https://youtu.be/Dry5jo6nQF4