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 ...