Skip to content

chrishutchinson/christmas-tree-painter

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

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