/ElfDoors

Primary LanguageTypeScript

ElfDoors Marketing

Elfdoors

Copyright 2019 Keaton Burleson

Usage

node

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

    Build the Angular frontend to be served by the ExpressJS server.

    $ npm run build:frontend
  3. Run

    Start the ExpressJS server.

    $ npm run start

docker-compose

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

    Build the Docker image to be served.

    $ docker-compose build
  3. Run

    Start the Docker container.

    $ docker-compose up -d

Heroku

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

    Create a Heroku app from the CLI.

    $ heroku apps:create elfdoors-instance-001
    $ heroku stack:set container
  3. Deploy

    Deploy the Heroku app

    $ git push heroku master

Displaying

Chrome

macOS:

Start Google Chrome in kiosk mode:

$ /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --kiosk --app='https://your-instance.elfdoors'

Linux:

Start Google Chrome in kiosk mode:

$ /usr/bin/google-chrome --kiosk  --app='https://your-instance.elfdoors'