This commit is contained in:
2022-11-11 16:29:38 +09:00
commit 584f181bdb
13 changed files with 516 additions and 0 deletions

17
express/simple_express.js Normal file
View File

@@ -0,0 +1,17 @@
const express = require("express");
const app = express();
app.get("/", (req, res) => {
res.send("Hi!");
});
const server = app.listen(18888, () => {
console.log("Server ready.");
});
process.on("SIGTERM", () => {
server.close(() => {
console.log("Process terminated");
});
});