Skip to content

Latest commit

 

History

History

README.md

Orchestration API

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

Setup

  1. install dependencies

    > npm install
    
  2. 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

  3. Acquire pusher credentials and store the file as /lib/pusher-account.json. https://dashboard.pusher.com/apps/845025/keys

Running

  1. just run the app :)
    > npm run start
    

Deploying

This app is deployed on the Google cloud engine.

  1. 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

  2. Deploy the app with google cloud platform https://cloud.google.com/community/tutorials/run-expressjs-on-google-app-engine

    > gcloud app deploy