nestjs-bff
nestjs-bff copied to clipboard
Q: Tutorial
Could you make a tutorial out of the content of this repo? How to assemble each part step by step.
Hi @bm-stschneider - thanks for your interest. That's a good idea. I am currently tied up on another project, so it may be a while before I get to it. If you have any spefic questions in the meantime, feel free to ask
It is mainly the approach of building the parts and how to put them together. I'm thinking about somehow to use it to get rid of twig and have some kind of replacement so the frontend can manage the BFF part instead of the backend team. So I'm really interested in the whole package :P
@bm-stschneider - so all of it :) I'll try to put some documentation together over the holidays, or maybe start a github-wiki and start the process of building that out. But, in short, some of the main structual goals were/are:
- Combining typescript components to accomodate the main produciton needs, such as logging, migrations etc
- Reuse code between the front and the backend where possible (to keep it DRY)
- Build out a vertical slice for basic entity CRUD operations that required as little code on the part of the consumer as possible
- Take a "security first" approach - so that authorization code has to be provided for all entity access (and when not present, access is denied)
Hope that helps!