nestjs-bff icon indicating copy to clipboard operation
nestjs-bff copied to clipboard

Q: Tutorial

Open st-schneider opened this issue 5 years ago • 3 comments

Could you make a tutorial out of the content of this repo? How to assemble each part step by step.

st-schneider avatar Nov 16 '19 12:11 st-schneider

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

jamshally avatar Nov 25 '19 20:11 jamshally

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

st-schneider avatar Nov 26 '19 08:11 st-schneider

@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!

jamshally avatar Dec 14 '19 07:12 jamshally