Skip to content

Commit 8e584a1

Browse files
authored
Update index.ts
1 parent c1f3c2d commit 8e584a1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
import express, { Request, Response } from "express";
22
import { config } from "dotenv";
3+
import { databaseConnection } from "./configs/db-config";
34

45
// env and app configuration
56
config();
7+
databaseConnection();
68
const app = express();
79
const port: string = process.env.APPLICATION_PROT || "8000";
810

911
app.get("/", (req: Request, res: Response) => {
10-
res.send('Hello, TypeScript with Express!');
12+
res.send("Hello, TypeScript with Express!");
1113
});
1214

1315
app.listen(port, () => {

0 commit comments

Comments
 (0)