The next step is to do the same thing with the user-ms microservice. Since we are using Google Endpoints, the only reason to have this microservice is if you treat the user as a customer, for example, and maybe you could use the basic authentication with the user password and login as part of the authentication/authorization process.
As you might have guessed, the project structure is almost the same as for order-ms. The user-ms code will have the following structure:
Before we enter the code for user-ms, copy and paste the following files from the order-ms service into the user-ms service:
- tslint.json
- tsconfig.json
- stryker.conf.js
- Dockerfile
- .prettierrc
- .gitignore
- .dockerignore
- test/routes/api.spec/ts
- test.mocha.opts