Like, Comment and share the video. Subscribe my channel. Also give your suggestions what should be the topic for next video. For User authentication with JWT, Express and mongo check my story on medium => medium.com/@rempire230/user-authentication-with-jwt-using-node-express-and-mongo-db-altas-f0256232abb1
13:56 line 12 `module.exports = User = mongoose.model('user', user);` shows me an error for `User` saying it must be defined. My code looks exactly the same and I still get that error, could this be due to some type of change to how Mongoose works or is there something I'm missing?
I tried your db connection statements, without a DB folder, in my server.js file. Couldn't connect to the database. Then I tried them in the DB folder under connections.js and imported using require into server.js . Shouldn't be a difference that I know of, but then it worked fine. I don't get it, but will remember to use DB/connections.js
I really love this. Thanks a lot. Now that we've learnt how to get data variables into the mongo DB, how do we get to fetch the same data variables out to our front end still using "ejs"
Hello Saturday, i tired as per you taught, but i threw an err while POST the data using postman. "TypeError: Cannot destructure property 'firstName' of 'req.body' as it is undefined.". Could you please help to sort it out.
Please check your req.body. Add breakpoint or print it inside console. Make sure you are receiving first name there. If not, you might be not sending it when you are calling API
Hi I am facing the same problem too with postman not sure where I am going wrong I am sending POST req with raw data used the cloned code from yours repo
Hi! I just started with MongoDB and while connecting with the DB, I am getting an error "ETIMEOUT". The connection was working fine then this happened. I cannot understand the issue and the DB is status is OK. Help me through this. Thanks.
Whitelist your public IP again, inside network access at cluster mongo db. You can allow access from anywhere as well, so you will not need to whitelist up again and again
I tried this and I am getting the same error as I did in my node homework before - "cannot get /", this error pops up a lot when I am following instructions extremely closely, somehow the result is always the same. Can you please explain why I might be getting the error?
hello sir, when i run the server, the server is started. But it doesn't connect to my db. (node:2192) UnhandledPromiseRejectionWarning: Error: queryTxt ETIMEOUT cluster0.kas9b.gcp.mongodb.net
Hi I cant udnerstand what you were explaining regarding this code>>> const Port = process.env.Port || 3000; If possible can you explain it in more detail its really vague. Appreciate it a lot if you can thanks for this.
Locally we are using port 3000, as we know this port is available. But at time of deployment, you will not know which prot is available to run server. So, at that time it will help to get port from environment
Hi, i am new to node js. i gone through the video, it help me a lot. i have one doubt though, i got an error, "MongooseServerSelectionError: Could not connect to any servers in your MongoDB Atlas cluster", Kindly help to fix this issue. Kindly help me to fix this issue
Hey man, pretty amazing resource. im going to be building a web app for scale and needed to know if mongodb atlas is a preferred option than the local mongodb server. thanks for the tutorial.
@@saturdaydeveloper8556 hello sir thanks for your response, but I am still not clear on the procedure. If you can make a video on this topic would be really appreciated
Like, Comment and share the video. Subscribe my channel.
Also give your suggestions what should be the topic for next video.
For User authentication with JWT, Express and mongo check my story on medium =>
medium.com/@rempire230/user-authentication-with-jwt-using-node-express-and-mongo-db-altas-f0256232abb1
Hello how can I add the get route
So that i can retrieve my posts
To the point! I have watched several videos but this is what I needed..
thank you soooo much
you saved my time
i feel so headache to access the database
now I get it from your video
Thank You so much sir for creating this content, this is very helpful for me.
Thank you so much for the crisp and clear tutorial!
Thank you very much.. I was struggling for such video.. 😊👍
thank you brosky! very clear tutorial.
LOVELY! Just what I needed
EXACTLY what I needed thank you so much
finaly i found this video, thank you so much
13:56 line 12 `module.exports = User = mongoose.model('user', user);` shows me an error for `User` saying it must be defined. My code looks exactly the same and I still get that error, could this be due to some type of change to how Mongoose works or is there something I'm missing?
Simple & Provides appropriate material :) Thank you
Hello, did anyone implement "get method" for this project? Thanks in advance.
thank you very much for this helpful video! exactly what I wanted to have!
How connectDB is related with the schema? I can see that you don't need to open or close a connection
Works like a charm, thak you very much!!!!!
It was superb helpful...thanks a lot
I tried your db connection statements, without a DB folder, in my server.js file. Couldn't connect to the database. Then I tried them in the DB folder under connections.js and imported using require into server.js . Shouldn't be a difference that I know of, but then it worked fine. I don't get it, but will remember to use DB/connections.js
Thanks man! really helpful
Helped me a lot!!!!! Tks :)
Would you write a sample of how to create get, push and delete API? Thank you!!
th-cam.com/play/PLaXdjrOMd1wriZEBTnjwtm1pM7h_qZ1aZ.html
Please, check this playlist.
I really love this.
Thanks a lot.
Now that we've learnt how to get data variables into the mongo DB, how do we get to fetch the same data variables out to our front end still using "ejs"
Hello Saturday,
i tired as per you taught, but i threw an err while POST the data using postman. "TypeError: Cannot destructure property 'firstName' of 'req.body' as it is undefined.". Could you please help to sort it out.
Please check your req.body.
Add breakpoint or print it inside console.
Make sure you are receiving first name there.
If not, you might be not sending it when you are calling API
@@saturdaydeveloper8556 Thank you so much man.
Welcome!
Keep supporting channel
Hi I am facing the same problem too with postman not sure where I am going wrong
I am sending POST req with raw data
used the cloned code from yours repo
Good stuff man. Thanks for the tutorial, it was really helful
Hi! I just started with MongoDB and while connecting with the DB, I am getting an error "ETIMEOUT". The connection was working fine then this happened. I cannot understand the issue and the DB is status is OK. Help me through this. Thanks.
Whitelist your public IP again, inside network access at cluster mongo db.
You can allow access from anywhere as well, so you will not need to whitelist up again and again
Tired that too and it did not work
this worked for me! Thanks a lot!
Thank you man! you just saved a life!!!
Your welcome ! Keep supporting channel
many many thanks to making the video...it really help everyone
I tried doing what u did whot postman but I get a message saying it could not send the request
Check your request type and url. Make sure both are correct
Thanks Saturday! This was really helpful
I tried this and I am getting the same error as I did in my node homework before - "cannot get /", this error pops up a lot when I am following instructions extremely closely, somehow the result is always the same. Can you please explain why I might be getting the error?
Let's connect over linked in
You can find my profile in channel description
u helped me lot ...thanks
why do i get an error saying connectDB IS NOT A FUNCTION.. HELP ME OUT PLS
OK I GOT IT FIXED, REMOVED THE AWAIT
A thank you from Brazil
thanks a lot, how do u get data from database and display it as html using get?
Use fetch method to call api, then you can simply display data in your html using html element id
@@saturdaydeveloper8556 thanks
Thanks a lot man I really needed this
(node:15600) UnhandledPromiseRejectionWarning: MongoAPIError: URI must include hostname, domain name, and tld
amazing work! thankyou much
But how can i get the data from the website
hello sir, when i run the server, the server is started. But it doesn't connect to my db. (node:2192) UnhandledPromiseRejectionWarning: Error: queryTxt ETIMEOUT cluster0.kas9b.gcp.mongodb.net
Check your db string credentials
Thank you so much... It helped a lot
Hi I cant udnerstand what you were explaining regarding this code>>> const Port = process.env.Port || 3000; If possible can you explain it in more detail its really vague. Appreciate it a lot if you can thanks for this.
Locally we are using port 3000, as we know this port is available.
But at time of deployment, you will not know which prot is available to run server.
So, at that time it will help to get port from environment
@@saturdaydeveloper8556 oops i thought i deleted this already anyway thanks. Instead of asking this shoulld have googled it . Anyway ty a lot
sir,other request put etc posibale ?
Thank you very much bro
Hi,
i am new to node js. i gone through the video, it help me a lot. i have one doubt though, i got an error, "MongooseServerSelectionError: Could not connect to any servers in your MongoDB Atlas cluster", Kindly help to fix this issue.
Kindly help me to fix this issue
Find your public IP on Google.
Go to network access on mongo db altas site and paste your IP
It will white list your ip
@@saturdaydeveloper8556 Yeah..! it works, thanks for the quick help.
@@hariharannagarajan6739
Welcome!
Keep supporting channel
Were you post any videos for front end to be connected with this back end video?
Hey man, pretty amazing resource. im going to be building a web app for scale and needed to know if mongodb atlas is a preferred option than the local mongodb server. thanks for the tutorial.
Well done Saturday developer
I cannot get firstname and lastname however I can get id
as a response
Very Good!!
helped alot. Thanks for tutorial........
Thank You So much.
what is postman?
Postman is a tool, where you can test your API
Thank you so much sir!
awesome, very clear
Thank You!
thanks a lot
Hii bro i am facing difficult in solving following error
querySrv EREFUSED _mongodb._tcp.cluster0.t3lxr.mongodb.net
Keep going on!!
Gr8, I will help to everyone
awesome
2:05
hi please can you help me
i face some problem
What's issue?
Very nice..!!
thank you
errros SyntaxError: await is only valid in async function :((((
:D
add "async" before "function"
Nice video
then postman find opratione posible
I liked the video. Can you please tell me how to terminate my cluster and delete my atlas account. this would be helpful.
docs.atlas.mongodb.com/tutorial/delete-atlas-account/
I suppose this link will help you
@@saturdaydeveloper8556 hello sir thanks for your response, but I am still not clear on the procedure. If you can make a video on this topic would be really appreciated
Good
thanks
(node:15600) UnhandledPromiseRejectionWarning: MongoAPIError: URI must include hostname, domain name, and tld.////help me