started server after installing all dependencies and also created .env file.
these are the variables with their values:
PORT=5000
MONGO_URI=mongodb://127.0.0.1/crudnodeapp
I just got this error on my browser screen
{"message":"connect ECONNREFUSED ::1:3000","name":"Error","stack":"Error: connect ECONNREFUSED ::1:3000\n at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1300:16)","config":{"url":"http://localhost:3000/api/users","method":"get","headers":{"Accept":"application/json, text/plain, */*","User-Agent":"axios/0.21.0"},"transformRequest":[null],"transformResponse":[null],"timeout":0,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1},"code":"ECONNREFUSED"}
i just tried to go on another manually by typing their urls got from routes file
only one route work for me @method GET /add-user
another both routes @method GET /
and @method GET /update-user
throw same error mentioned above...
one more thing i want to add is that database is all good. I created the user using above working route /add-user
and then checked the collection it was successfully added to the database. Plz help me