Creating an API starter using Fastify
Fastify (https://fastify.dev/) is a Node.js web framework for constructing web applications. It facilitates the development of an HTTP server and the creation of your API in a straightforward, efficient, scalable, and secure manner. The first Fastify’s stable release dates back to 2018. Since then, it has garnered a substantial community, boasting over 7 million monthly downloads. Moreover, it maintains a consistent release schedule, with a major version update approximately every two years.
Because practical experience is often the most effective way to learn, in this chapter, we will undertake the implementation of an API server for our brand-new fantasy restaurant! Our objectives encompass displaying the menu, allowing the chef to add or remove recipes, and enabling guests to place orders that the chef will receive and cook!
So, let’s start our hands-on session with Fastify, and at the end of this chapter, you will evaluate...