Create basic CRUD routes with Node.js, Express, and MongoDB.
NOTE: For this to work correctly, you must use the same version of mongodb. Your package.json file should say: “mongodb”: “^2.2.33”
💻 Code on GitHub: https://github.com/beaucarnes/fcc-project-tutorials/tree/master/notable
🔗 Based on this article by Scott Domes: https://medium.freecodecamp.org/building-a-simple-node-js-api-in-under-30-minutes-a07ea9e390d2
🐦 Beau Carnes on Twitter: https://twitter.com/carnesbeau
Check out free Postman programs for students and educators to help you learn more about APIs: https://www.postman.com/company/student-program/
Learn to code for free and get a developer job: https://www.freecodecamp.com
Read hundreds of articles on technology: https://medium.freecodecamp.com
And subscribe for new programming videos every day: https://youtube.com/subscription_center?add_user=freecodecamp
This Post Has 23 Comments
Best REST API tutorial on Youtube!!!
outdated, doesn't work atall..
nice one, thanks mate !
Thank you, it was so helpful to build my first api as a non-developer ! With mongoDB cloud atlas and. the trick db.db('database').collection
is it just me or he looks kinda like Gilfoyle from Silicon Valley?? Great tutorial btw. Thank you
PostMan chrome extension is now deprecated but the desktop app is working well. Same stuff for Mlab which is now MongoDB =).
Thanks for this tutorial !
thank you for a great video , looking forward to watch your future one !
Thanks a lot
how do you connect with VS Code mongdb attachment
lol im a 9 year old and i'm really experienced in coding
NOTE: db.collection('notes') is now changed to db.db().collection('notes)
Business Opportunity in Ruvol
I have invented a Board Game [still unpublished and not yet out in the market] that I believe is guaranteed to be as challenging and exciting as CHESS. I called it “RUVOL.”
It is my hope that one day Ruvol may surpass chess as the “Number One Board Game in the World.”
The weakness of chess is it always starts in fixed positions that the opening moves become “memorizable.” In fact, not a few have so mastered the moves that they can play against their opponents “blindfolded.” It is for this very reason that the great Bobby Fischer introduced his so-called “Fischer Random Chess,” where the starting position of the pieces is “randomized” to make the memorization of openings impracticable. Fortunately, it is also for this reason that I invented Ruvol where “every game” has been calculated to be a challenging one to play.
HOW IS RUVOL PLAYED and HOW YOU CAN MONETIZE IT?
I detailed everything in my YouTube video. Here is the link: https://www.youtube.com/watch?v=jcqth0m3-R0
BIG MONEY POTENTIAL IN RUVOL!
It is worthwhile to note that the people who play chess will be the same people who will play Ruvol. In my Google search, I learned there are around 800 million chess players in the world. Even just a small percentage of these 800 million is good enough to earn big money from Ruvol either as an ONLINE GAME BUSINESS or as a PHYSICAL PRODUCT DISTRIBUTOR.
You may contact me at: firstname.lastname@example.org.
Thanks and God bless!
RODOLFO MARTIN VITANGCOL
The Ruvol Inventor
This comment was created by sending a post request to one of YouTube's databases through their API; neat.
7:20 just a reminder
People having issues with db.collection does not exist
Change it to
Guys. I don't understand!!
Beau missed closing the connection I guess
Great video, totally nailed it🔥🔥can you do a similar tutorial for SOAP api with Nodejs?
You are a wizard man. Thanks
The more weird things you have to add the less useful It looks . Mlab ? Isn't there something Generic or open source ?
Typos everywhere ! :'/
I can't focus on what you say because I get distracted by every typo.
Could have been great otherwise.
No wonder I was having weird problems, 4yrs aho lmfao I'm blind