Communities In Schools JavaScript and Node.js Training
Herein you'll find:
- Projects to try
- Instructions for Tessel2NodeBots
- Follow-up document with JavaScript_and_Nodejs_Basics to practice on your own
-
Double-click or drag
index.html
into your browser.
Notice you can draw.
Uncomment the input box in this file to add color selection. -
Install Node.js on your computer.
-
Go to your console and go into the repo directory.
Typenpm install
to get dependencies.
Typenode app
to run the Node.js server. -
Go back to your browser and open a new tab to
http://localhost:3000
.
Click the link in the middle of the page.
Copy the URI address.
Now open another web browser and paste the URI, or have a friend go to the URI (on the same network).
You're now sending events from one browser to the server and the other browser is listening and responding.
Can you figure out how to send color to the other browser?
--
Made with ♥ by CAA