noteshare.space/server/build/server.js
Maxime Cannoodt cc9653d464 reordering
2022-06-21 23:30:11 +02:00

17 lines
590 B
JavaScript

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const express_1 = __importDefault(require("express"));
const app = (0, express_1.default)();
const port = 8080; // default port to listen
// define a route handler for the default home page
app.get("/", (req, res) => {
res.send("Hello world!");
});
// start the Express server
app.listen(port, () => {
console.log(`server started at http://localhost:${port}!`);
});