[{"data":1,"prerenderedAt":274},["ShallowReactive",2],{"blog-frontend-architecture-2-pl":3},{"number":4,"title":5,"summary":6,"parts":7,"toc":11,"minutes":273},2,"Skąd się wziął ten pomysł","Architektura łączy trzy źródła. Wymieniamy je, bo każde warto przeczytać w oryginale.",[8],{"kind":9,"html":10},"html","\u003Cp>Architektura łączy trzy źródła. Wymieniamy je, bo każde warto przeczytać w oryginale.\u003C\u002Fp>\n\u003Cdiv class=\"table-wrap\">\u003Ctable>\n\u003Cthead>\n\u003Ctr>\n\u003Cth>Źródło\u003C\u002Fth>\n\u003Cth>Co wnosi\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\n\u003Ctr>\n\u003Ctd>\u003Cstrong>Nx\u003C\u002Fstrong> (zespół Nrwl, \u003Cem>Enterprise Angular Monorepo Patterns\u003C\u002Fem>)\u003C\u002Ftd>\n\u003Ctd>Samo monorepo, biblioteki z publicznym \u003Ccode>index.ts\u003C\u002Fcode> i klasyczne typy bibliotek: \u003Ccode>feature\u003C\u002Fcode>, \u003Ccode>ui\u003C\u002Fcode>, \u003Ccode>data-access\u003C\u002Fcode>, \u003Ccode>util\u003C\u002Fcode>. Tagi na projektach i regułę lintera \u003Ccode>@nx\u002Fenforce-module-boundaries\u003C\u002Fcode>.\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Cstrong>Manfred Steyer\u003C\u002Fstrong> (ANGULARarchitects, e-book \u003Cem>Enterprise Angular\u003C\u002Fem>, jego artykuły o projektowaniu strategicznym z Nx)\u003C\u002Ftd>\n\u003Ctd>Zastosowanie Domain-Driven Design we frontendzie: \u003Cstrong>domeny jako pionowe wycinki\u003C\u002Fstrong>, \u003Cstrong>typy bibliotek jako poziome warstwy\u003C\u002Fstrong>, dwa wymiary tagów (\u003Ccode>domain:*\u003C\u002Fcode> i \u003Ccode>type:*\u003C\u002Fcode>) sprawdzane przez linter, \u003Cstrong>biblioteka API\u003C\u002Fstrong> jako jedyne drzwi między domenami i \u003Cstrong>fasada\u003C\u002Fstrong> między UI a zarządzaniem stanem. Później także \u003Cstrong>Sheriff\u003C\u002Fstrong>, narzędzie do sprawdzania granic w projektach bez Nx.\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Cstrong>NgRx\u003C\u002Fstrong> (a przed nim Redux)\u003C\u002Ftd>\n\u003Ctd>Jeden store na wspólny stan, zmiany przez akcje i czyste reducery, efekty uboczne w efektach, odczyty przez memoizowane selektory.\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\u003C\u002Fdiv>\n\u003Cp>Co zdecydowaliśmy dodatkowo, w tym przewodniku:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>osobny typ \u003Ccode>model\u003C\u002Fcode> na typy niezależne od frameworka i czyste funkcje domenowe, żeby biblioteki \u003Ccode>ui\u003C\u002Fcode> nigdy nie zależały od zarządzania stanem;\u003C\u002Fli>\n\u003Cli>osobny typ \u003Ccode>shell\u003C\u002Fcode> (\u003Ccode>feature-shell\u003C\u002Fcode> z Nx), który jest właścicielem tras i providerów domeny;\u003C\u002Fli>\n\u003Cli>trzeci wymiar tagów, \u003Ccode>framework:*\u003C\u002Fcode>, żeby aplikacje w Angularze, Reakcie i Vue mogły żyć w jednym workspace'ie i współdzielić kod \u003Ccode>model\u003C\u002Fcode> i \u003Ccode>util\u003C\u002Fcode>;\u003C\u002Fli>\n\u003Cli>czwarty wymiar dla Next.js, \u003Ccode>platform:server\u003C\u002Fcode> i \u003Ccode>platform:client\u003C\u002Fcode>;\u003C\u002Fli>\n\u003Cli>regułę z sekcji 10, kiedy fasada się opłaca, a kiedy ją pominąć;\u003C\u002Fli>\n\u003Cli>przełożenie na React\u002FNext i Vue\u002FNuxt w sekcjach 12 i 13.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>Gdy coś na tej stronie nie zgadza się z oryginalnymi artykułami, punktem odniesienia dla samego pomysłu jest oryginał; ta strona jest punktem odniesienia dla tego, jak go stosujemy.\u003C\u002Fp>\n",[12,25,29,33,37,57,73,89,113,141,153,173,213,241,245,249,269],{"id":13,"text":14,"depth":4,"children":15},"s1","1. Po co frontendowi architektura",[16,21],{"id":17,"text":18,"depth":19,"children":20},"s1-1","1.1. Cele",3,[],{"id":22,"text":23,"depth":19,"children":24},"s1-2","1.2. Czego ta architektura nie robi",[],{"id":26,"text":27,"depth":4,"children":28},"s2","2. Skąd się wziął ten pomysł",[],{"id":30,"text":31,"depth":4,"children":32},"s3","3. Architektura na jednej stronie",[],{"id":34,"text":35,"depth":4,"children":36},"s4","4. Słownik",[],{"id":38,"text":39,"depth":4,"children":40},"s5","5. Przykład: Fleetline",[41,45,49,53],{"id":42,"text":43,"depth":19,"children":44},"s5-1","5.1. Aplikacje",[],{"id":46,"text":47,"depth":19,"children":48},"s5-2","5.2. Domeny i zespoły",[],{"id":50,"text":51,"depth":19,"children":52},"s5-3","5.3. Workspace",[],{"id":54,"text":55,"depth":19,"children":56},"s5-4","5.4. Jeden przypadek użycia przez wszystkie warstwy",[],{"id":58,"text":59,"depth":4,"children":60},"s6","6. Typy bibliotek",[61,65,69],{"id":62,"text":63,"depth":19,"children":64},"s6-1","6.1. Kto może importować kogo",[],{"id":66,"text":67,"depth":19,"children":68},"s6-2","6.2. Jak duża jest biblioteka",[],{"id":70,"text":71,"depth":19,"children":72},"s6-3","6.3. Style",[],{"id":74,"text":75,"depth":4,"children":76},"s7","7. Domeny i granice",[77,81,85],{"id":78,"text":79,"depth":19,"children":80},"s7-1","7.1. Biblioteka API",[],{"id":82,"text":83,"depth":19,"children":84},"s7-2","7.2. Shared to też domena",[],{"id":86,"text":87,"depth":19,"children":88},"s7-3","7.3. Gdy dwie domeny potrzebują tego samego",[],{"id":90,"text":91,"depth":4,"children":92},"s8","8. Egzekwowanie reguł",[93,97,101,105,109],{"id":94,"text":95,"depth":19,"children":96},"s8-1","8.1. Tagi",[],{"id":98,"text":99,"depth":19,"children":100},"s8-2","8.2. Reguła lintera",[],{"id":102,"text":103,"depth":19,"children":104},"s8-3","8.3. Wymiar frameworka",[],{"id":106,"text":107,"depth":19,"children":108},"s8-4","8.4. Bez Nx: Sheriff",[],{"id":110,"text":111,"depth":19,"children":112},"s8-5","8.5. W CI",[],{"id":114,"text":115,"depth":4,"children":116},"s9","9. Stan w NgRx",[117,121,125,129,133,137],{"id":118,"text":119,"depth":19,"children":120},"s9-1","9.1. Model",[],{"id":122,"text":123,"depth":19,"children":124},"s9-2","9.2. Zdarzenia",[],{"id":126,"text":127,"depth":19,"children":128},"s9-3","9.3. Feature: stan, reducer, selektory",[],{"id":130,"text":131,"depth":19,"children":132},"s9-4","9.4. HTTP i efekty",[],{"id":134,"text":135,"depth":19,"children":136},"s9-5","9.5. Providery",[],{"id":138,"text":139,"depth":19,"children":140},"s9-6","9.6. Publiczne API data-access",[],{"id":142,"text":143,"depth":4,"children":144},"s10","10. Fasada i kiedy ją pominąć",[145,149],{"id":146,"text":147,"depth":19,"children":148},"s10-1","10.1. Po co fasada",[],{"id":150,"text":151,"depth":19,"children":152},"s10-2","10.2. Dlaczego fasada jest opcjonalna",[],{"id":154,"text":155,"depth":4,"children":156},"s11","11. Angular od początku do końca",[157,161,165,169],{"id":158,"text":159,"depth":19,"children":160},"s11-1","11.1. Biblioteka ui",[],{"id":162,"text":163,"depth":19,"children":164},"s11-2","11.2. Biblioteka feature",[],{"id":166,"text":167,"depth":19,"children":168},"s11-3","11.3. Shell",[],{"id":170,"text":171,"depth":19,"children":172},"s11-4","11.4. Aplikacja",[],{"id":174,"text":175,"depth":4,"children":176},"s12","12. React i Next.js",[177,181,185,189,193,197,201,205,209],{"id":178,"text":179,"depth":19,"children":180},"s12-1","12.1. Co odpowiada czemu",[],{"id":182,"text":183,"depth":19,"children":184},"s12-2","12.2. Tagi dla serwera i klienta",[],{"id":186,"text":187,"depth":19,"children":188},"s12-3","12.3. HTTP i klient zapytań",[],{"id":190,"text":191,"depth":19,"children":192},"s12-4","12.4. Zapytania i mutacje",[],{"id":194,"text":195,"depth":19,"children":196},"s12-5","12.5. Stan klienta w Zustandzie",[],{"id":198,"text":199,"depth":19,"children":200},"s12-6","12.6. Hook fasady",[],{"id":202,"text":203,"depth":19,"children":204},"s12-7","12.7. Feature, ui i trasa",[],{"id":206,"text":207,"depth":19,"children":208},"s12-8","12.8. Shell i API innej domeny",[],{"id":210,"text":211,"depth":19,"children":212},"s12-9","12.9. Pułapki specyficzne dla Next.js",[],{"id":214,"text":215,"depth":4,"children":216},"s13","13. Vue i Nuxt",[217,221,225,229,233,237],{"id":218,"text":219,"depth":19,"children":220},"s13-1","13.1. Co odpowiada czemu",[],{"id":222,"text":223,"depth":19,"children":224},"s13-2","13.2. Wyłączcie auto-importy dla bibliotek",[],{"id":226,"text":227,"depth":19,"children":228},"s13-3","13.3. Store",[],{"id":230,"text":231,"depth":19,"children":232},"s13-4","13.4. Composable fasady i zasięg store'a",[],{"id":234,"text":235,"depth":19,"children":236},"s13-5","13.5. Feature, ui, shell i strona",[],{"id":238,"text":239,"depth":19,"children":240},"s13-6","13.6. Pułapki specyficzne dla Nuxt",[],{"id":242,"text":243,"depth":4,"children":244},"s14","14. Obok siebie",[],{"id":246,"text":247,"depth":4,"children":248},"s15","15. Testy według typu biblioteki",[],{"id":250,"text":251,"depth":4,"children":252},"s16","16. Dorastanie do tej architektury i migracja",[253,257,261,265],{"id":254,"text":255,"depth":19,"children":256},"s16-1","16.1. Migracja w ośmiu krokach",[],{"id":258,"text":259,"depth":19,"children":260},"s16-2","16.2. Co zwykle idzie źle",[],{"id":262,"text":263,"depth":19,"children":264},"s16-3","16.3. Kiedy podzielić bibliotekę",[],{"id":266,"text":267,"depth":19,"children":268},"s16-4","16.4. Kiedy to za dużo",[],{"id":270,"text":271,"depth":4,"children":272},"s17","17. Pytania",[],33,1795449738501]