new main project start
This commit is contained in:
17
src/index.js
Normal file
17
src/index.js
Normal file
@@ -0,0 +1,17 @@
|
||||
import express from 'express'
|
||||
|
||||
const app = express()
|
||||
|
||||
const port = 8081
|
||||
|
||||
app.use(express.json())
|
||||
|
||||
app.get('/',(req,res)=>{
|
||||
res.send('Hello from express server!')
|
||||
})
|
||||
|
||||
app.listen(port, ()=>{
|
||||
console.log(`Listening on port ${port}`)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user