server.listen(PORT, ()=>{
console.log(SERVER IS LISTENING @ PORT ${PORT})
})
7. Start the Index.js server as `npm start` and visit localhost:5000 in your browser search bar
![image](https://user-images.githubusercontent.com/63782055/126283016-da4ce155-38dc-4b87-a049-cffb8de33ed4.png)
Steps:
npm init -y
npm i nodemon
const conStr={ host:"localhost", user:"root", password:"", database:"Github_issues_db" } const con=mysql.createConnection(conStr)
const server=http.createServer((req, resp)=>{
})
server.listen(PORT, ()=>{ console.log(
SERVER IS LISTENING @ PORT ${PORT}
) })