...
Code Block | ||||
---|---|---|---|---|
| ||||
var express = require("express"); var app = express(); app.listen(3000, () => { console.log("Server running on port 3000"); }); |
When you run this app you will see the message "Cannot GET /". If you check the developer's tools console output you will see the following error "GET http://localhost:3000/ 404 (Not Found). You are seeing this message because you have not set up any event handlers (your application has no endpoints)