Setting up the project

In this section, you will be instructed on how to set this service up before we start coding the main elements. Setting up this service is a good bit easier than the previous service, the UMS. We are not sending emails, nor are we issuing JSON Web Tokens (JWTs). Remember that JWTs are issued by our UMS, so all we have to do is validate that they are actually issued correctly and have not been tampered with. We will need a database in which to store the product and category information, which—just as before—is going to be MySQL.

What we will do is basically the following:

  • Manage models that represent the products and categories.
  • Verify that a user is authorized to modify products or categories.

This section covers ...

Get Hands-On Swift 5 Microservices Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.