Let’s build full stack apps in 14 now. Learn building rest api routes in 14 using app directory. In this video, you will learn how to setup, structure and create CRUD apis in 14. Learn how to connect with mongodb and create mongoose modals to create relationship between data modals.
I will create api routes for users, notes and dynamic note id. Finally you will learn how to protect whole backend using middleware and how to use multiple middleware for api routes in 14.
00:03 Overview
01:30 Create first GET api route
04:00 Setup Mongo Altas
07:55 Connect to MongoDB
12:50 Create mongoose Schema for User
16:10 Create mongoose Schema for Notes
18:30 User GET api route
23:00 User POST api route
30:00 User PATCH api route
38:40 User DELETE api route
44:30 Notes GET api route
50:20 Notes POST api route
57:40 Notes PATCH api route
01:03:50 Notes DELETE api route
01:08:30 Note Dynamic api route
01:14:00 Protect api routes with middleware
01:23:10 Logging middleware for notes api routes
#restapis #nextjs14 #postman #mongodb #api #database
Follow Whatsapp Channel:
React tutorials:
JavaScript Tutorials and Projects:
Angular Tutorials:
Docker Tutorials & CI/CD:
Angular 16 Crash Course For Beginners:
Tech Tutorials - Random:
Complete 13 Tutorials:
14 Tutorials:
Node Express MongoDB Bootcamp:
ChatGPT Tutorials:
Join our facebook group:
Contact us for development services 🤝:
Github Repository Link (Give it a Star ⭐️):
1 view
322
66
1 month ago 00:40:25 1
40MIN Unilateral Leg Strength - Lower Body Workout
2 months ago 00:06:07 1
PATRIARKH - WIERSZALIN IV (feat. Eliza Sacharczuk) (Official Video) | Napalm Records
2 months ago 00:25:39 3
Lian Li made WIRELESS PC FANS and they’re INSANE! Full Details, Setup, and Install!
2 months ago 00:01:36 1
Master Shed Building 12,000 Plans - My Shed Plans Build A Shed Video
2 months ago 00:05:04 1
Mother Earth responds to Forbes 500, Mighty Man by Peruquois
2 months ago 04:39:24 1
Dr. Andy Galpin: Optimal Protocols to Build Strength & Grow Muscles | Huberman Lab Guest Series
2 months ago 10:10:10 1
T H A L A S S A \\ Hauntingly Beautiful Fantasy Music for Gaming | Relaxing | Studying | Sleeping
2 months ago 00:03:35 1
Paleface Swiss - Lights Out (Official Music Video)
2 months ago 00:11:23 1
Canelo Alvarez (MEXICO) VS Edgar Berlanga (PUERTO RICO) Full Fight Highlights
2 months ago 00:21:07 1
20 Min. Mobility for Runners | Injury Prevention | Run PAIN FREE | No Equipment
2 months ago 00:47:02 1
Arm Toning Workout // Day18 HR12WEEK 2.0
2 months ago 00:01:03 1
NEW DC Multiverse™ JLTF™ 7“ Scale Build-A-Figure line Bundle | Action Figure Showcase
2 months ago 00:03:37 1
Russia advances on Selidovo cauldron faster than Ukraine expected to even escape
2 months ago 00:08:07 1
I Turned My Toaster Into a Gaming PC
2 months ago 00:18:44 1
❣DIY Log Fairy House Lamp Using a Coke Plastic Bottle❣
2 months ago 00:09:05 4
Primitive Technology: A-frame hut
2 months ago 04:04:23 1
Angular Crash Course 2024 (for Beginners)
2 months ago 00:03:42 1
Maren Morris - Kiss The Sky (from The Wild Robot)
2 months ago 00:24:57 1
Building Romain Bardet’s all-new SCOTT Plasma RC TT
2 months ago 00:34:26 1
30 MIN FULL BODY HIIT + STRENGTH Workout - With Weights - Get Strong, Burn Fat, No Repeat
2 months ago 00:02:41 1
Royale Lynn - “SACRIFICE“ (Official Music Video)
2 months ago 00:10:11 1
WE FOUND abandoned TRAINS in the USSR depot
2 months ago 00:00:22 1
⚠ A MAN HAS BEEN SPOTTED PROTESTING IN LEGO CITY ⚠