This override extends and modifies the base generate-it ts server with the required additives for RMQ and shared utils.
Ensure you remove what you do not require from the stack before starting.
- See the .nodegenrc file.
- "src/services/AccessTokenService.ts" & "src/services/PermissionService.ts" are removed.
- src/http/nodegen/middleware imports the handlers for permissions and access token from the common-utils.
- A cache folder is present:
- This expects a connection to a redis database
- Connection is established in the app.ts
- The cache has a max life and a hook to repopulate when the said life is reached.
- RMQ is used as a fanout exchange for emitted common data between services
- Connection is established in the app.ts
- The RMQ definition is expected in the mono-repo
- It declares typed models of data payloads transmitted between services
- Important to note that RMQ here is used as a fanout exchange, meaning that all services will receive the message.