In this section, you’ll see how to serve static content from Express alongside your RESTful APIs. Some of the static content will come from third-party dependencies, which we’ll pull from Bower.
Express comes with a convenient way to serve static files. All you have to do is use the express.static middleware and provide a directory. For example, these lines appear in the b4 server: