Using a package for web services
There are excellent packages available for creating web services, although the lack of standardization means that you have to find one that suits your preferences about how web services should function, which may be different from the approach I have taken in this chapter. I like the Feathers package (https://feathersjs.com), which works similarly to the custom code in this chapter and has good integrations with popular databases and other packages, including Express.
But there are plenty of good packages available, and a good tip is to search for microservices, which has become such a hot term that some packages position themselves as being part of the microservices ecosystem.
Run the commands shown in Listing 14.42 in the part2app
folder to install the Feathers package and the integrations with Express.
Listing 14.42: Installing packages
npm install @feathersjs/feathers@5.0.14
npm install @feathersjs/express@5.0.14
The Feathers...