Skip to content

Commit 627b6b7

Browse files
committed
Create server.ts file /start
1 parent fe58b0d commit 627b6b7

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

server.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import express from 'express'
2+
3+
const app = express()
4+
const PORT:Number = 9898
5+
6+
app.get('/', (req, res) => {
7+
res.send('Welcome to typescript backend!')
8+
})
9+
10+
app.listen(PORT,() => {
11+
console.log(`The application is listening on port http://localhost:${PORT}`)
12+
})

0 commit comments

Comments
 (0)