You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
370 B
TypeScript
16 lines
370 B
TypeScript
import express, { Request, Response } from 'express'
|
|
import bodyParser from 'body-parser'
|
|
|
|
const app: express.Application = express()
|
|
const address: string = "0.0.0.0:3000"
|
|
|
|
app.use(bodyParser.json())
|
|
|
|
app.get('/', function (req: Request, res: Response) {
|
|
res.send('Hello World!')
|
|
})
|
|
|
|
app.listen(3000, function () {
|
|
console.log(`starting app on: ${address}`)
|
|
})
|