This is a basic example, but it demonstrates the fundamental structure of a Node.js application.
Steps :
- Install Node Js
- Create a New File ( app.js )
- Run the Program by command ( node app.js )
const express = require('express')
const app = express()
app.get('/',(req,res)=>{
res.send('Hello world')
})
app.listen(3000,()=>{
console.log('Server started')
})
© www.thecoderjob.com. All Rights Reserved. Designed by HTML Codex