Files
chess/server/src/server.ts
T
2023-04-01 19:36:29 +03:00

14 lines
315 B
TypeScript

import express, { Application, Request, Response } from "express";
const PORT = process.env.PORT || 3000;
const app: Application = express();
app.get("/", (req: Request, res: Response) => {
res.send("Hello, world!");
});
app.listen(PORT, () =>
console.log("Server listening on http://localhost:" + PORT)
);