Join Joseph LeBlanc for an in-depth discussion in this video Starting an Express project, part of Node.js First Look.
- View Offline
- Exercise Files
Most web applications do certain tasks over and over again. Among these are…handling URLs, receiving data and displaying data in predefined layouts.…Frameworks can help reduce the amount of code you've to write to handle…these routine tasks.…Let's take a look at the URL handling in a framework written for Node called Express.…I've copied the recipes folder from the exercise files on to my desktop. Let's…take a look at package.json.…I've listed Express at version 2.5.11 as a dependency.…
Let's install Express now.…Go to the Terminal and change directory to Desktop/recipes/.…Type in npm install.…Now that Express is installed, let's take a look at the script.…We're loading Express as a module and then we're creating an Express…server using createServer.…Then we're defining three roots using app.get.…Finally, we're listening to the application on Port 3000.…Let's take a closer look at these roots.…
We've one root for recipes, we have another root for recipes that has a…variable called title.…And then we've another root with an asterisk. Any root that isn't handled by the…
- Using the Socket.IO Node package to achieve "live" effects like Facebook notifications
- Scraping web sites using jQuery without a browser
Skill Level Beginner
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.