Where to go from here

The breweries management code is implemented in the source code, but not covered in this tutorial. It is similar to the beer management code, and you should read through it to learn more about using the Node.js SDK.

Here are some features that are not implemented in the sample code. You might want to add them while learning to use the SDK:

  • When deleting a brewery, ensure it has no beers dependent on it.

  • Provide a search that allows the user to query beers belonging to a given brewery.

  • Handle concurrent updates to a beer and/or brewery.

  • Implement a like feature that allows the user to like a beer or a brewery; likewise, they can unlike one as well!