Skip to content

Latest commit

History

History
39 lines (26 loc) 路 1.23 KB

README.md

File metadata and controls

39 lines (26 loc) 路 1.23 KB

Paint your own Christmas Tree 馃巹

A Node.js server and TypeScript web client allowing you to colour in your Christmas tree lights

Compatible lights

Pre-requisites

  • You'll need a device running Node.js 8+, I've tested using a Raspberry Pi 3
  • Some basic wiring will be required to connect up your lights to your device

Installation

First! Clone this repo down to your device

Node.js server

  1. cd into the packages/server directory
  2. Install the dependencies using $ npm install
  3. Start the server by running $ npm run start

This will run the server on your device on port 2811. You can then use the client app to connect to this server.

TypeScript Client

Note! While you can run your own client app, it is pre-deployed at https://chrishutchinson.github.io/christmas-tree-painter

  1. cd into the packages/client directory
  2. Install the dependencies using $ npm install or $ yarn
  3. Run the app with $ yarn start
  4. The web UI should open in your browser, enter the IP address or hostname of the device running the Node.js server, with the port number 2811, e.g. 192.168.0.10:2811