Search⌘ K
AI Features

Getting Started

Explore the basics of serving HTML pages and images with a Node.js server as you start building a food delivery web application. Learn to handle URL requests and respond dynamically, setting the foundation for a functional multi-page site.

Our task

To really put our newly learned knowledge to test, we shall be creating a food delivery web application. Here are some of the goals we wish to accomplish:

  • View all restaurants
  • Choose items from a restaurant and add them to our cart
  • Calculate a total for the cart and proceed to a checkout

Serving an HTML page

The simplest and easiest way to get started is to create a server. We have already seen how we can create a web server and display text using Node.js in a previous lesson. Now, we shall learn to serve web pages through our server, which ...