Skip to content

Commit

Permalink
test server deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
manupanand committed Nov 15, 2024
1 parent fa5ee45 commit 63af2f0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app.log
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,9 @@
{"level":"\u001b[32minfo\u001b[39m","message":"{\"method\":\"GET\",\"url\":\"/favicon.ico\",\"status\":\"404\",\"responseTime\":\"2.722\"}","timestamp":"2024-11-13T10:20:59.439Z"}
{"level":"\u001b[32minfo\u001b[39m","message":"Server started succesfully on port :5000","timestamp":"2024-11-14T17:18:50.576Z"}
{"level":"\u001b[32minfo\u001b[39m","message":"MongoDb connection successful","timestamp":"2024-11-14T17:18:51.239Z"}
{"level":"\u001b[32minfo\u001b[39m","message":"Server started succesfully on port :5000","timestamp":"2024-11-14T17:23:51.346Z"}
{"level":"\u001b[32minfo\u001b[39m","message":"MongoDb connection successful","timestamp":"2024-11-14T17:23:52.045Z"}
{"level":"\u001b[31merror\u001b[39m","message":"Error in creating User / Signup controller: username is not defined","stack":"ReferenceError: username is not defined\n at signUpUser (/home/manudev/Documents/Codes/fullstack_projects/websocket/chat-application-websocket/backend/controllers/auth.controller.js:65:49)\n at Layer.handle [as handle_request] (/home/manudev/Documents/Codes/fullstack_projects/websocket/chat-application-websocket/node_modules/express/lib/router/layer.js:95:5)\n at next (/home/manudev/Documents/Codes/fullstack_projects/websocket/chat-application-websocket/node_modules/express/lib/router/route.js:149:13)\n at Route.dispatch (/home/manudev/Documents/Codes/fullstack_projects/websocket/chat-application-websocket/node_modules/express/lib/router/route.js:119:3)\n at Layer.handle [as handle_request] (/home/manudev/Documents/Codes/fullstack_projects/websocket/chat-application-websocket/node_modules/express/lib/router/layer.js:95:5)\n at /home/manudev/Documents/Codes/fullstack_projects/websocket/chat-application-websocket/node_modules/express/lib/router/index.js:284:15\n at Function.process_params (/home/manudev/Documents/Codes/fullstack_projects/websocket/chat-application-websocket/node_modules/express/lib/router/index.js:346:12)\n at next (/home/manudev/Documents/Codes/fullstack_projects/websocket/chat-application-websocket/node_modules/express/lib/router/index.js:280:10)\n at Function.handle (/home/manudev/Documents/Codes/fullstack_projects/websocket/chat-application-websocket/node_modules/express/lib/router/index.js:175:3)\n at router (/home/manudev/Documents/Codes/fullstack_projects/websocket/chat-application-websocket/node_modules/express/lib/router/index.js:47:12)","timestamp":"2024-11-14T17:23:54.891Z"}
{"level":"\u001b[32minfo\u001b[39m","message":"{\"method\":\"POST\",\"url\":\"/api/auth/signup\",\"status\":\"500\",\"responseTime\":\"33.379\"}","timestamp":"2024-11-14T17:23:54.896Z"}
{"level":"\u001b[32minfo\u001b[39m","message":"Server started succesfully on port :5000","timestamp":"2024-11-15T07:01:22.020Z"}
{"level":"\u001b[32minfo\u001b[39m","message":"MongoDb connection successful","timestamp":"2024-11-15T07:01:22.663Z"}
6 changes: 6 additions & 0 deletions backend/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ app.use(express.json())//to parse req.body middleware
//routes
app.use('/api/auth',mainRouter)
app.use('/api/message',messageRouter)
app.get('/',(req,res)=>{
res.json({
message:"got main route test",
malay:"തിരഞ്ഞെടുത്ത ഉദ്ധരണി "
})
})


app.listen(5000,()=>{
Expand Down

0 comments on commit 63af2f0

Please sign in to comment.