You can build your NodeJS middleware using the http module, but it will be a great deal more efficient using a framework. The most popular web application framework for node is Express. In this example we will create a very simple server, providing static content. We will take a look at basic routing and serve JSON objects via a RESTful API. In an upcoming post I will give some insights to the client and backend side, for now we will test it using Postman.

Tagged with