Skip to content

Quick set of scripts built to demo and teach an introduction to nodejs.

Notifications You must be signed in to change notification settings

tylerstalder/Node4America

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Some people on our team wanted a quick intro to NodeJS and the advantages and use cases for it. I've mostly used it for simple scripts and http utilties, but I built these examples for us to walkthrough in about an hour. This was also an introduction to event driven programming and the callback patterns in node.

I. What is nodejs

II. Simple hello world from nodejs.org (helloworld.js)

III. Extended example showing in memory data structures and variables to count the number of connections that have hit the node server. (counter.js)

IV. Simple text proxy showing more of the http module and events attached to the request object and their anonymous callbacks. (proxy.js)

V. Next we walked through NPM and how to get it installed npmjs.org, then installing jsdom with npm install jsdom

VI. Web scraper using JSDOM a 3rd party library and nested callbacks and event handlers to extract a portion of html from a remote server using http get and the DOM API. (scraper.js)

About

Quick set of scripts built to demo and teach an introduction to nodejs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published