We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1f3c2d commit 8e584a1Copy full SHA for 8e584a1
src/index.ts
@@ -1,13 +1,15 @@
1
import express, { Request, Response } from "express";
2
import { config } from "dotenv";
3
+import { databaseConnection } from "./configs/db-config";
4
5
// env and app configuration
6
config();
7
+databaseConnection();
8
const app = express();
9
const port: string = process.env.APPLICATION_PROT || "8000";
10
11
app.get("/", (req: Request, res: Response) => {
- res.send('Hello, TypeScript with Express!');
12
+ res.send("Hello, TypeScript with Express!");
13
});
14
15
app.listen(port, () => {
0 commit comments