Testing the GET order feature
Let's create a brand new package in a different project. Why a different project? We have explored the idea that the API deserves its own set of features and that we should decouple it from the core layer using a well-defined interface that we will mock. Since it is a different problem domain, we should create a different package. This way, we can develop them and manage their life cycles in an independent fashion.
Tip
For a simple project like this, it is OK if you prefer to simply put both layers in the same package.
So, let's create a mycafe-api/ folder with the same project layout we have been using so far. Initialize the project by creating a basic package.json file, and then, run the following commands to install ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access