Copyright 2019 Keaton Burleson
-
Setup
Create a
.env
file in the project root. Use the template below to create your environment.# Intelli-M configuration INTELLI_ENDPOINT='http://69.69.69.69:420' INTELLI_USERNAME='admin' INTELLI_PASSWORD='admin' # Defaults to 'ElfDoors' TITLE='Client1' # Port to run the server on PORT=3000
-
Build
Build the Angular frontend to be served by the ExpressJS server.
$ npm run build:frontend
-
Run
Start the ExpressJS server.
$ npm run start
-
Setup
Create a
.env
file in the project root. Use the template below to create your environment.# Intelli-M configuration INTELLI_ENDPOINT='http://69.69.69.69:420' INTELLI_USERNAME='admin' INTELLI_PASSWORD='admin' # Defaults to 'ElfDoors' TITLE='Client1' # Port to run the server on PORT=3000
-
Build
Build the Docker image to be served.
$ docker-compose build
-
Run
Start the Docker container.
$ docker-compose up -d
-
Setup
Set your Heroku configuration like you would your environment variables.
$ heroku config:set INTELLI_ENDPOINT=http://69.69.69.69:420 $ heroku config:set INTELLI_USERNAME=admin $ heroku config:set INTELLI_PASSWORD=admin $ heroku config:set TITLE=ElfDoors
-
Create
Create a Heroku app from the CLI.
$ heroku apps:create elfdoors-instance-001 $ heroku stack:set container
-
Deploy
Deploy the Heroku app
$ git push heroku master
Start Google Chrome in kiosk mode:
$ /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --kiosk --app='https://your-instance.elfdoors'
Start Google Chrome in kiosk mode:
$ /usr/bin/google-chrome --kiosk --app='https://your-instance.elfdoors'