December 2018
Intermediate to advanced
642 pages
15h 5m
English
Let's install Express and make sure that it works. Installation is basically trivial because it's just another npm package, so you just need a simple command:
npm install express --save
Next, let's redo our basic test server from the previous chapter, but using Express. And, yes, this is way overkill for such a simple feature, but we just want to check that we set everything up in the right fashion! Refer to the following code:
// Source file: src/hello_world.js/* @flow */"use strict";const express = require("express");const app = express();app.get("/", (req, res) => res.send("Server alive, ...Read now
Unlock full access