Install NodeJS, TypeScript, ExpressJS and ESLint
Install NodeJS, TypeScript, ExpressJS and ESLint with initial configuration files. Add initial instructions to README.md
This commit is contained in:
parent
a37c58ed5e
commit
74c1ee1b7b
6 changed files with 2592 additions and 0 deletions
11
src/app.ts
Normal file
11
src/app.ts
Normal file
|
@ -0,0 +1,11 @@
|
|||
import express from 'express'
|
||||
const app = express()
|
||||
const port = 3000
|
||||
|
||||
app.get('/', (req, res) => {
|
||||
res.send('Hello World!')
|
||||
})
|
||||
|
||||
app.listen(port, () => {
|
||||
return console.log(`Express is listening at http://localhost:${port}`)
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue