1basic server
2
3const express =require('express');
4const app = express();
5const PORT = 5000;
6
7
8app.get('/',(req,res)=>{
9 res.json({message: 'Welcome to the backend'})
10})
11
12
13app.listen(PORT ,()=>console.log(`Connected to ${PORT}`)
14
15