This repository holds the front-end html, css, javascript, images and more. The front-end uses React-Redux, Materia-UI, and Sass 3.
I suggest you first read about the different components of the home automation application.
This will help you understand better the general architecture and different functions of the system.
If you are serving the application via a web server such as nginx, make sure to direct incoming routes to the root ~/dist/index.html
file and let react-router take care of the rest. If you are unsure of how to do this, you might find this documentation helpful.
NODE_ENV (required): set up the running environment. Default: production
. production
will enforce encryption using SSL and other security mechanisms.
ALARM_URL (required): url to the alarm system server. Default: //localhost:3002
CAMERA_URL (required): url to the camera server. Default: //localhost:3007
GARAGE_URL (required): url to the garage server. Default: //localhost:3003
LOGIN_URL (required): url to the authentication server. Default: //localhost:3001