blob: 15e763f9d39e2c99f90e052e1e8b840af73b1729 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
"use strict";
exports.__esModule = true;
var express = require("express");
var app = express();
var port = 8080; // default port to listen
// define a route handler for the default home page
app.get("/", function (req, res) {
res.send("Hello world!");
});
// start the Express server
app.listen(port, function () {
console.log("server started at http://localhost:" + port);
});
|