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 просмотр
230
49
2 недели назад 01:03:46 1
Вы не можете жить без этой музыки. Музыка для сердца, здоровья
2 недели назад 00:09:09 1
The Best Google Maps Data Scraper - Scrape Google Maps Data Easily!
2 недели назад 00:08:52 1
Build/Playstyle Tier List | No Rest for the Wicked
2 недели назад 00:10:21 1
Email Extractor Tutorial: Scrape emails from Google Maps & Domains with Leads-Sniper🚀
2 недели назад 00:02:13 1
HELLUVA BOSS: SEASON TWO TRAILER (LVL UP 2024)
2 недели назад 00:31:06 1
30 min PILATES+YOGA full body - At Home // No Equipment
2 недели назад 00:22:27 1
🏆 22-Min Standing Workout Challenge: Tone Your Abs, Waist, Hips, Thighs & Legs in Just 14 Days!
2 недели назад 00:20:24 1
20 Min Fat Burning HIIT Workout - Full body Cardio, No Equipment, No Repeat
2 недели назад 00:04:33 1
Crust - God Made Some Hearts of Stone (Official Video)
2 недели назад 00:05:55 1
LinkedIn Email Extractor - The Ultimate Bulk Email Extraction Tool
2 недели назад 00:07:01 5
Dance Gavin Dance “Speed Demon” & “Straight From The Heart” (Official Music Video)
2 недели назад 00:00:35 1
INSANE SuperQuad on the LIMIT 🤯 GSX-R1000 Power
2 недели назад 00:33:42 1
30 Min Full Upper Body Workout - Tone and Build Strength With Dumbbells At Home
2 недели назад 00:04:50 1
Marga Hills NSX | @diiviinemedia | HALCYON (4K)
2 недели назад 11:54:57 1
FLYING OVER JAPAN (4K UHD) Amazing Beautiful Nature Scenery with Relaxing Music | 4K VIDEO ULTRA HD
2 недели назад 01:09:48 33
1 hour bodyweight full body workout | Calisthenic clusters
2 недели назад 00:04:14 2
GENSHIN IMPACT
2 недели назад 00:02:47 1
Red Special Replica as Brian May first built it
2 недели назад 00:01:47 1
No Rest for the Wicked - на русском! Official Steam Early Access Launch Trailer
2 недели назад 00:08:43 1
My first Gyrobee flight
2 недели назад 00:03:43 1
Tim Steinfort - Democracy official music video
2 недели назад 00:06:46 1
Architect Designs Byron Bay’s Most Expensive Home (House Tour)