https://github.com/gdibble/caa-nodetraining
https://github.com/gdibble/caa-nodetraining
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/gdibble/caa-nodetraining
- Owner: gdibble
- Created: 2016-04-21T01:07:47.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-22T07:03:09.000Z (about 10 years ago)
- Last Synced: 2025-10-09T02:29:30.597Z (9 months ago)
- Language: JavaScript
- Size: 4.54 MB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# caa-nodeTraining
Communities In Schools JavaScript and Node.js Training
Herein you'll find:
* Projects to try
* Instructions for [Tessel2NodeBots](Tessel2NodeBots.md)
* Follow-up document with [JavaScript_and_Nodejs_Basics](JavaScript_and_Nodejs_Basics.md) to practice on your own
## node-drawing-game
1. Double-click or drag `index.html` into your browser.
Notice you can draw.
Uncomment the input box in this file to add color selection.
2. Install [Node.js](https://nodejs.org) on your computer.
3. Go to your console and go into the repo directory.
Type `npm install` to get dependencies.
Type `node app` to run the Node.js server.
4. 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_