Here is the demo code from the October 2017 JaxNode presentation on Express.js
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

JaxNode October 2017 express demo

This is a set of examples for the JaxNode October 2017 express demo. Express.js is probably the most common web application framework in the Node.js ecosystem. A web application can be constructed with very few lines of code, as per below;

const express = require('express');
const app = express();
const http = require('http');

app.get('/', (req, res) => {
    res.send('Hello World!');

const server = http.createServer(app);

Express Middleware

Most of the real power of Express comes from its Middleware. Developers have the option of adding middleware only when it is absolutely required.