Build A REST API With Node.js, Express, & MongoDB - Quick
Mô tả
Become a web developer with my FREE Web Development Roadmap - 260+ videos, 120+ projects, 60+ articles 👉 https://webdevsimplified.com/web-dev-... FREE MongoDB Cheat Sheet - 40+ methods 👉 https://webdevsimplified.com/mongodb-... In this video you will be building a fully functional REST API in under 30 minutes. You will learn how to setup a Node.js server with Express, how to connect that server to MongoDB through Mongoose, and how to setup a REST API with MongoDB and Node.js. This video is for any skill level and will cover all topics from the most basic server setup to more advanced API features. By the end of this video you will have all the skills needed to expand upon this API and make it your own. If you want to dive further into Node.js and MongoDB checkout my FREE full stack web development course linked below.
Danh sách bài giảng (1 bài)
Bài 1: Build A REST API With Node.js, Express, & MongoDB - Quick
Video bài giảngBài kiểm tra Quizzes (1)
Chưa mở khóaKiểm tra cuối kỳ: Build A REST API With Node.js, Express, & MongoDB - Quick
Bài kiểm tra tổng hợp 5 câu hỏi trắc nghiệm giúp củng cố kiến thức trọng tâm trong khóa học Build A REST API With Node.js, Express, & MongoDB - Quick.
Bài kiểm tra đang bị khóa
Vui lòng đăng ký khóa học để mở khóa toàn bộ 1 bài kiểm tra trắc nghiệm và xem kết quả làm bài.
Đánh giá từ học viên
Nhận xét và trải nghiệm thực tế từ các học viên đã đăng ký tham gia khóa học này.
Dựa trên 10 lượt đánh giá từ học viên
Đăng nhập để đánh giá khóa học
Bạn cần đăng nhập và tham gia khóa học để có thể gửi đánh giá và nhận xét.
Tất cả đánh giá 10
Become a web developer with my FREE Web Development Roadmap - 260+ videos, 120+ projects, 60+ articles 👉 https://webdevsimplified.com/web-dev-roadmap.html
FREE MongoDB Cheat Sheet - 40+ methods 👉 https://webdevsimplified.com/mongodb-cheat-sheet.html
If you're watching this in 2024 in Mongoose versions 6 and above, the remove method has been deprecated, and you should use the deleteOne method instead.
As an update, if you are having issues with the deletion (~25m mark), change remove() to deleteOne() - this is due to a change in the MongoDB wording
I spent roughly 4.3 hours slowly coding along with you, referencing your other videos, other YouTubers, Googling things, trying other approaches, etc, and I think I finally have an okay understanding of APIs in general and REST specifically. Thank you! As a self-taught programmer, channels like yours are indispensable. You’re a gem, WDS, and I hope you know that! Onward!
Only thing that you have missed to add in this video is "setting up mongodb on local" or at-least a prerequisite list would help the beginners
If you are new to React and Mongo DB, make sure you install Mongo db on you pc before starting this tutorial otherwise you will get this error:
(node:1164) UnhandledPromiseRejectionWarning: MongoNetworkError: failed to connect to server [localhost:27017] on first connect [Error: connect ECONNREFUSED 127.0.0.1:27017
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1141:16) {
name: 'MongoNetworkError',
[Symbol(mongoErrorContextSymbol)]: {}
}]
Like another user pointed out, if you're having issues by 4:48 where you cannot connect to the database or some error is returned, ensure that you have MongoDB installed locally on your system.
Just got my first programming job and I need these tutorials like I need water. Thank you
If you are getting an error when using res.{collection name}.remove() (around 25:10), use deleteOne() instead, this seems to be the more updated method and using remove() will not work for me. Good luck!