Exercises: Server Side Routing - Rest APIs In Depth

Published: 27 September 2023
on channel: Tech with Nader
814
30

Let's go through some exercises to get practice with Server Side Routing in Deno together, using web standard methods.

We start with a warmup using simple if/else statements and the URL constructor to route incoming request pathnames.

Then we move to using the URLPattern API to route incoming requests.

In the second main exercise, we add some complexity to create even more dynamic routing patterns using the URLPattern API.

We wrap up the exercises with an HTML routing exercise where we route an incoming connection to an HTML file as well as an image file dynamically.

Chapters:
00:00 Introduction
00:41 Warmup Exercise - Conditional Routes
13:28 Exercise 1 - URLPattern Routing
22:05 Exercise 2 - Dynamic Routing
38:50 Exercise 3 - HTML Content Routing
1:04:04 Error Handling
1:09:04 Next Steps

📦 Github Repository with the notes and exercise code+solutions: https://github.com/Nooder/rest-api-in...

💬 Come join us on Discord to chat with a like-minded community about tech and learning:   / discord  

🏅Support the channel and content through Super Thanks, Channel Memberships, or on Patreon:   / techwithnader  


Watch video Exercises: Server Side Routing - Rest APIs In Depth online without registration, duration hours minute second in high quality. This video was added by user Tech with Nader 27 September 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 81 once and liked it 3 people.