Let's start building our very first web server in Deno together!
We start with an overview of what we're trying to build right before diving in to the code where we use the Deno.serve API to create our first server.
We test out our server in Chrome and Insomnia and look at the HTTP Headers, as well as the Request and Response Objects in detail.
To wrap thing up, we look at the different MIME Types that allow us to specify what kind of content we are sending to our clients. We see an example of this with an HTML file that we serve to test in both Chrome and Insomnia.
In the exercises following this video, we'll look at some more examples as well.
Chapters:
00:00 Introduction
00:35 Backend Overview
02:02 Request Response Visual
04:08 Deno Server Code
18:35 Inspecting HTTP Headers
22:06 Request and Response Objects
28:37 MIME Types
33:09 Serving an HTML File
40:10 Changing Response Headers
43:20 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 Simple Web Server - Rest APIs In Depth online without registration, duration hours minute second in high quality. This video was added by user Tech with Nader 20 September 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,37 once and liked it 5 people.