Performs actions on networks. This API is hosted in the cloud and provides simple services for performing actions on lights.
It is hosted on: https://holistic-home-5134d.appspot.com
-
install dependencies
> npm install
-
Acquire service credentials and store the file as
/lib/service-account.json
To acquire credentials, follow the steps outlined here: https://firebase.google.com/docs/admin/setup#initialize_the_sdk -
Acquire pusher credentials and store the file as
/lib/pusher-account.json
. https://dashboard.pusher.com/apps/845025/keys
- just run the app :)
> npm run start
This app is deployed on the Google cloud engine.
-
ensure you are set up with the google cloud cli https://cloud.google.com/sdk/docs/#install_the_latest_cloud_tools_version_cloudsdk_current_version
-
Deploy the app with google cloud platform https://cloud.google.com/community/tutorials/run-expressjs-on-google-app-engine
> gcloud app deploy