express helloworld

This commit is contained in:
Peace
2025-06-05 00:02:11 +09:00
parent 62d67e3bf7
commit 315bcb23a7
4 changed files with 173 additions and 0 deletions

13
letsStart/src/app.ts Normal file
View File

@@ -0,0 +1,13 @@
import * as express from "express";
const app: express.Express = express();
const port: number = 8000;
app.get("/", (req: express.Request, res: express.Response) => {
console.log(req);
res.send("Hello World!");
});
app.listen(port, () => {
console.log(`Example app listening at http://localhost:${port}`);
});