In this chapter, we studied the bare bones and built our API from scratch by using only the functionality provided by the core Node.js modules themselves. We did this in order to show you how Node.js works in reality and to avoid binding you to any given framework that already does the things that we implemented here, in case you use another one in your own career.
That being said, as an addendum, we would still like to point you to some frameworks that we ourselves recommend in order to build powerful APIs quickly with Node.js:
Express.js: Express is a framework that can be used to build robust, complete web applications using Node.js. It comes with a host of powerful features, including an advanced router, which makes it very easy to handle incoming requests based on the URL (forget about the switch and if statements like we did here), extract, parse, and validate data, connect to external data sources, and much more.
Express.js is largely seen as the de facto framework for...