Skip to content

Commit

Permalink
redone
Browse files Browse the repository at this point in the history
  • Loading branch information
MHN-Sathsara committed May 22, 2024
1 parent 2c58d36 commit de33e08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
7 changes: 1 addition & 6 deletions Backend/Server.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
const express = require('express')


//expressapp
const app = express()

app.get('/', (req, res) => {
res.json({mssg: 'Welcome to the app'})
})

//listen for req
app.listen(4000, () => {
console.log('Listeneing on port 4000 its working')
console.log('Listening on port 4000 its working !')
})
6 changes: 3 additions & 3 deletions Backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"name": "backend",
"version": "1.0.0",
"description": "",
"main": "Server.js",
"main": "server.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node server.js",
"dev": "node server.js"
"start": "node server.js"

},
"keywords": [],
"author": "",
Expand Down

0 comments on commit de33e08

Please sign in to comment.