SDpower / home-automation-example

This application is a reference for home automation solutions.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Home Automation Example App

This application is written as a React app with Murano Solution event handlers, routes, modules and static assets.

Using This Example

Clone this repository.

git clone git@github.com:exosite/home-automation-example.git
cd home-automation-example

To deploy the application, first install the exosite command line tool. Then initialize the project with your solution and product id using the --init option and deploy with --deploy.

To build the application, install build tools using npm install. The minimum node version we're supporting is 0.12.x. If you have a lower version you'll encounter errors while running npm install.

After installing the packages, compile the application.

npm run compile

To run the web application static assets locally, create a .env file in the root of the project with your solution URL, like this:

API_BASE_URL=https://<solution-name>.apps.exosite-dev.io

Install this Chrome plugin and import this configuration:

{"title":"Local Debugging","hideComment":true,"headers":[{"enabled":true,"name":"","value":"","comment":""}],"respHeaders":[{"enabled":true,"name":"Access-Control-Allow-Origin","value":"http://localhost:8080","comment":""},{"enabled":true,"name":"Access-Control-Allow-Credentials","value":"true","comment":""}],"filters":[],"appendMode":""}

Then run this and go to http://localhost:8080 in your browser.

npm run start:dev

About

This application is a reference for home automation solutions.


Languages

Language:JavaScript 67.6%Language:Lua 27.5%Language:CSS 4.3%Language:HTML 0.6%