mirror of
https://github.com/okiba-org/backend.git
synced 2025-07-02 12:58:22 +00:00
init project
This commit is contained in:
15
src/main.ts
Normal file
15
src/main.ts
Normal file
@ -0,0 +1,15 @@
|
||||
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}`);
|
||||
});
|
Reference in New Issue
Block a user