This application is a reference for home automation solutions.
JavaScript Lua CSS HTML
Switch branches/tags
Nothing to show
Clone or download
Permalink
Failed to load latest commit information.
app Fixing on/off and moving device event handler to module. May 26, 2017
event_handler Fixing on/off and moving device event handler to module. May 26, 2017
modules Fixed table-indexing syntax Sep 22, 2017
node-version-restriction Add minimum node version restriction Jul 12, 2016
public Fixing on/off and moving device event handler to module. May 26, 2017
test
.gitignore added IntelliJ files and venv folder to gitignore Jun 15, 2016
README.md
Solutionfile.json Fixing on/off and moving device event handler to module. May 26, 2017
package.json fix a minor package update that broke the build by requiring patch up… Nov 28, 2016
sample_api.lua Added GET /tsdb/query/{sn}/{alias} for simple example query based on … May 1, 2017
webpack.config.js Removed redux for pure react. Rewrote all of the UI code. Added a lot… Jun 27, 2016

README.md

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 Murano command line tool. Then initialize the Project with your Application and Product id using the init option and deploy with syncup.

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

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

npm run start:dev