This runs the (Night of the Living Farm) NOLF and "blue" light shows for Deanna Rose Children's Farmstead
This runs the moving ligths, washers, building outltine pixel, and ornaments.
-
Recommended - Go to GitHub and create an account so you can post comments, send pull requests, etc. for the project.
-
Suggestion - Ask the project committers to make you a committer for the project.
-
Clone or download the source (suggestion /projects/farmsteadLightsNolf).
-
Recommended - Clone instead of download. Cloning creates a local git repository for you with the history of the project. This also allows you to commit, changes to your lcal repository (for checkpointing changes) before pushing changes to the server.
- Click "Clone or download"
- Click "Open in Desktop" (This will use GitHub Desktop... a UI for git)
- If you do not have GitHub Desktop installed, install it when prompted
-
Recommended - Install git command line tools
Node.js is a JavaScript runtime system for building applications. This project (like many other projects) uses it to create an HTTP server.
-
Go to https://nodejs.org/en/
-
Download LTS or current version (12.19) for Windows or Mac
-
Run the installer; accept the defaults
-
To verify installation, in a terminal/command window, type: node -v and then npm -v
This project does not require VS Code or any IDE. Most programmers will find an IDE is very helpful. VS Code is free and I used it here to gain experience.
-
Download the Windows or Mac version - latest stable build
-
For Mac:
- Unzip the installer and copy the app into your Applications folder
-
For Windows:
- Run the exe.
- Restart your computer (to fix path environment variable - per the instructions).
-
To verify installation, launch and close the app
-
Add Extensions to VS Code; On the left navigation pane (Activity bar), click the Extensions icon. Install these extensions:npm
The npm (node package manager) will install the JavaScript packages (libraries) the project needs including:
- Express library (simple web framework)
npm installs packages in the folder "node_modules" withing the project folder.
- Install:
- Open a terminal or command line window
- "cd" to project folder
- npm install
-
Optional - Update the software from github.com
- Open a terminal or command line window
- cd to project folder
- git pull
-
Start the service
- Open a terminal or command line window
- cd to project folder
- node nolfShow.js
-
Turn off the moving lights
- Stop the show
- Open a terminal or command line window
- cd to project folder
- node nolfShow.js off
- In VS Code, open the project folder (File/Open)
- On the left navigation pane (Activity bar), click the debug icon
- Click the green arrow icon in the debug view to start the service and attach the debugger