Рет қаралды 26,036
Web Dev Roadmap for Beginners (Free!): bit.ly/DaveGrayWebDevRoadmap
Learn how to apply MongoDB async CRUD operations with async await and Mongoose in this Node.js Tutorial. This tutorial is the final lesson in the Node.js for Beginners tutorial series. You will also learn how to quickly deploy the REST API we have created with Node.js, Express, and MongoDB.
🚩 Subscribe ➜ bit.ly/3nGHmNn
🚀 This tutorial is part of a Node.js & Express for Beginners tutorial series playlist:
• Node.js Tutorials for ...
🔗 Starter Source Code: github.com/gitdagray/mongodb_...
🔗 Completed Source Code: github.com/gitdagray/mongo_as...
MongoDB Async CRUD Operations | Mongoose Async Await | Node.js Tutorial
(00:00) Intro
(00:05) Welcome and Overview
(00:51) refresh token controller
(03:33) logout controller
(05:54) auth controller
(07:45) testing the updated routes
(13:10) get all employees
(15:00) create a new employee
(17:20) update an employee
(20:46) delete an employee
(22:44) get a single employee
(24:10) test updated employee routes
(29:01) user admin routes
(29:56) deploy the REST API
🌱 MongoDB and Mongoose References:
MongoDB: www.mongodb.com/
Mongoose: mongoosejs.com/
📚 JWT References:
Intro to JSON Web Tokens: jwt.io/introduction
All You Need to Know About Storing JWT in the Frontend: dev.to/cotter/localstorage-vs...
NPM jsonwebtoken package: www.npmjs.com/package/jsonweb...
NPM cookie-parser package: www.npmjs.com/package/cookie-...
Deleting Cookies: expressjs.com/en/api.html#res....
Cross-Site Scripting (XSS): owasp.org/www-community/attac...
Cross-Site Request Forgery (CSRF): owasp.org/www-community/attac...
REST Security Cheat Sheet: cheatsheetseries.owasp.org/ch...
📚 Login References:
Bcrypt: www.npmjs.com/package/bcrypt
How to Safely Store a Password: codahale.com/how-to-safely-st...
MDN: HTTP Response Status Codes: developer.mozilla.org/en-US/d...
📚 More References:
Node.js Official site: nodejs.org
NPM Official site: www.npmjs.com/
Express JS Official site: expressjs.com/
MDN CORS: developer.mozilla.org/en-US/d...
NPM CORS: www.npmjs.com/package/cors
✅ Follow Me:
Twitter: / yesdavidgray
LinkedIn: / davidagray
Blog: yesdavidgray.com
Reddit: / daveoneleven
Was this tutorial about async await CRUD operations with Mongoose for MongoDB in Node.js helpful? If so, please share. Let me know your thoughts in the comments.
#mongodb #mongoose #nodejs