Skip to content

Commit 43a680a

Browse files
committed
Add express
1 parent 523c9c1 commit 43a680a

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"dependencies": {
2626
"@types/node": "^9.4.6",
2727
"eslint-config-standard-jsx": "^4.0.2",
28+
"express": "^4.16.2",
2829
"typescript-eslint-parser": "^13.0.0"
2930
},
3031
"devDependencies": {

src/index.ts

+10-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
1-
console.log('Hello Typescript')
1+
import express = require('express')
2+
3+
const app = express()
4+
5+
app.get('/', (req, res) => {
6+
res.send('Hello TypeScript')
7+
})
8+
9+
console.log('Listening to port 3004')
10+
app.listen(3004)

0 commit comments

Comments
 (0)