Introduction to Express, the Node.js web application framework with code samples
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
0-intro
1-hello-world
2-middleware
3-api
4-data-access
5-rendering-pages
6-sessions
7-sockets
_img
.gitignore
LICENSE
README.md
package-lock.json
package.json

README.md

Intro to Express

This repository contains an introduction to using the Node.js web application framework Express. I'm creating this in preparation for a presentation I'll be doing December 13, 2017 for the Western MA Development Technology User Group.

Table of Contents

  1. Introduction
  2. Hello World
  3. Middleware
  4. RESTful API
  5. Data Access
  6. Rendering Web Pages
  7. Session Management
  8. Sockets

Environment setup

  • Install Node.js and npm (included)
    • Installs globally (PATH) for convenience
  • Use any text editor of your choice. Having a debugger is nice but optional.

Running the code samples

  1. Clone this repository
  2. Run npm install from this directory
  3. Run node <filename> from within any of the numbered subdirectories (e.g. node hello-world)
    • If you're using VSCode, just open any code sample file and press F5 to start debugging

Resources