mirror of
https://github.com/okiba-org/backend.git
synced 2025-02-23 17:52:03 +00:00
16 lines
339 B
TypeScript
16 lines
339 B
TypeScript
|
import express, { Response, Request, Express } from "express";
|
||
|
import dotenv from "dotenv";
|
||
|
|
||
|
dotenv.config();
|
||
|
const app: Express = express();
|
||
|
|
||
|
const port = process.env.PORT;
|
||
|
|
||
|
app.get("/", (req: Request, res: Response) => {
|
||
|
res.send("Hello, World!");
|
||
|
});
|
||
|
|
||
|
app.listen(port, () => {
|
||
|
console.log(`Server started on port ${port}`);
|
||
|
});
|