Skip to content

Demo local site viewr to be used with app-demo menu app

Notifications You must be signed in to change notification settings

OakLabsInc/app-demo-site

Repository files navigation

Demo Site Application

Application for OakOS v5.0.X

Running locally

Make sure that you are running the right version of Node locally. You will find the required version in the .nvmrc file If you are not running the same version (node -v) then you will need to run

nvm install $(cat .nvmrc)
npm run rebuild

Now you can run locally

npm run dev

Running in a docker container

xhost +
docker-compose up --build

Shutting down the docker container

docker-compose down

Example Installation

{
  "services": [
    {
      "image": "index.docker.io/oaklabs/app-demo-site:latest",
      "environment": {
        "PORT": "9001",
          "API_KEY": "[secret api key]",
          "DEMO_NAME": "my_demo",
          "QRCODE_PORT": "9200",
          "PORT": "9001",
          "TZ": "America/Los_Angeles",
          "PRINTER_NAME": "http://localhost:631/printers/TM-T88V"
      }
    }
  ]
}

Here are the possible environmental variable

API_KEY=g5YIWkepdZYBezKjsZywnp8IEXu2
DEMO_NAME=vashon
PORT=9001
QRCODE_PORT=8200
QRCODE_HOST=[Host Domain or IP]
QRCODE_LOCAL="true"
TZ=America/Los_Angeles

This snippet results can be seen in the application logs on the OakOS Dashboard