Join Joseph LeBlanc for an in-depth discussion in this video Using Connect, part of Node.js First Look (2012).
While the core HTTP Module in Node gives you a lot of flexibility, it also…forces you to write a lot of things by hand.…Fortunately, there are other modules for Node that take care of routine tasks for you.…Connect is one of these modules. It builds on the core HTTP module and provides…functions for common web server configurations.…Let's take a look at the package.json file in the server folder.…We've listed connect as a dependency and we're using version 1.9.2.…Let's install Connect using NPM.…
Change directory to Desktop/ server/ and then npm install.…After Connect is installed, let's take a look at script.js.…In this script, we're going to serve assets directly from the public folder.…You may already be familiar with this sort of setup if you've used a web server…like Nginx or Apache before.…If we take a look at the contents of the public folder, you'll notice…an index.html file.…When we go to the root of the server, it will look for this index.html file and…serve it if it exists.…
We'll also be able to specify index.html specifically as well as these two images.…
- Using the Socket.IO Node package to achieve "live" effects like Facebook notifications
- Scraping web sites using jQuery without a browser
Skill Level Beginner
Q: Does the instruction from "Selecting through browserless jQuery" work for Windows users?
A: The “Selecting through browserless jQuery” video does not work on Windows
XHTML and HTML Essential Trainingwith Bill Weinman4h 44m Beginner
1. Installing Node
2. Getting Started
Running a Node script2m 6s
4. Command Line Scripts
5. Creating Web Servers
7. WebSocket Programming
8. Connecting Beyond Node
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.