From the course: Mastering Web Developer Interview Code

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

How does routing work in a modern web application?

How does routing work in a modern web application?

From the course: Mastering Web Developer Interview Code

How does routing work in a modern web application?

- [Illustrator] Modern web applications can often communicate with the server and have more direct access to both the request that is being sent to the server, as well as the response that you get back from the server. One of the technologies that works really well for managing these routes is node with the Express js framework. So we're going to take a look at a pretty simple example of how that works, and how you can manage your route with that framework. One of the things to remember about routes is that any application that can manage routing uses the URI, or Uniform Resource Identifier, sometimes known as the URL for Uniform Resource Locator to communicate and send requests to the server. Now, when you work with something like node, you have direct access to the verbs in the methods that you can use to work with these requests. The server does expect you to specify a method and essentially, this is…

Contents