This project requires Yarn and NodeJS 10.
- Clone this repository (
git clone https://github.com/limit-zero/projector-button.git) - From the project root, install dependencies via
yarn install - Setup the required environment variables (see below)
- When developing, run
yarn dev - When serving in production, run
yarn serve - The service is now available on
http://localhost:4999or whatever port you configure
You must specify your projector's USERNAME and PASSWORD values using environment variables. The easiest way to set these is to create a .env file in the root of the project:
USERNAME=usernamehere
PASSWORD=passwordhere
You can also change the default port using the PORT environment variable.
Once the service is running, you can power on a projector by visiting http://localhost:/[projector-host-name].
For example: http://localhost:4999/your-projector.your-domain.com