OnlinestorecomponentswritteninAngular.
FullAPIanddocumentationcheckhere.
Checkchangeloghere
StorearchitectureComponentsdependenciesMostofcomponentsareseparatedfromeachother.ThemostcommondependencyisDataAbstractionLayer(DAL).DALisabridgeforsomeconnector(fornowFirebaseConnector).DALcontainsmethodsformanipulatingwithdatabase(getproducts,addproductstoshoppingcart,removeproductsfromshoppingcartetc.),authapi(registeruser,login,logoutetc.).
QueryingtodatabaseAswestartedtousefirebasefordatabase,auth,storage,itwasaquestionhowtoprocessheavyquerieswithaggregations,multipleconditionsetc.FirebaseRealtimeDatabeseapiwasverysimpleforourrequirentments.AftersometimeofresearchwestayedatElasticSearch.It'sfast,allowtomakeheavyhardqueriesandFirebaseteamwroteanadaptertofirebasecalledFirebaseFlashlight.Forexample,queriesinProductServicearewrittenlikeElasticSearchqueries.
OrganizationofproductsAboutproductsorganizationyoucanreadindocsforservices,forexample,ProductserviceorBasketservice.
CreatingotherconnectorsIfyouwanttocreateyouownconnectoryoumustadoptittoElasticSearchflashlightoutput.
DocsTocreatedocumentation:
npminpmrunbuild-docsToservedocumentation:
npmrunserve-docs
评论