Development docs

Structure

The poc-care application is split into multiple different folders. Four of these folders contain separate applications: _admin, _care and _login.

  • _admin
    • Contains the employee portal TrueAdmin
    • Port 4201
  • _care
    • Contains the customer portal TrueCare
    • Port 4200,
  • _login
    • Contains the login application
    • Will redirect the user after login to one of the other applications
    • Port 4202

Aside from these four folders, there are also some folders that contain files that are shared between all four applications: base, core, i18n and shared.

  • base
    • Contains basic abstract classes which are to be extended in on of the applications, where they can be altered to fit the destined application.
    • Has no modules.
  • core
    • Contains core components of all the applications, like the error pages and interceptors.
    • Has only one module, core.module.ts
  • i18n
    • Contains the translation files
  • shared
    • Contains components that are used in multiple applications
    • Each component has it's own module.
Applications_careTrueCare applicationPort 4200Customer portal_adminTrueAdmin applicationPort 4201Employee portal_loginLogin applicationPort 4202accounts.true.nlStructure/component/subcomponentcomponent.htmlcomponent.csscomponent.tscomponent.spec.tscomponent.module.tscomponent-routing.tsLibbaseAbstract base classes to be extendedComponents don't have modulesStructure/component/subcomponentcomponent.base.htmlcomponent.base.csscomponent.base.tssharedShared componentsComponents are the same in all applicationsStructure/lib/component/subcomponentcomponent.htmlcomponent.csscomponent.tscomponent.spec.tscomponent.module.tsshared.module.tsCoreCore components of all applicationsStructure/componentcomponent.htmlcomponent.csscomponent.tscomponent.spec.tscore.module.tsi18nTranslation filesen.jsonnl.jsonPoc-care

How to choose where to create a new component

Needs to be added inboth Care and AdminyesnoNeeds to be the samein Care and AdminnonoCreate abstract base classin Base folder and extendit in Care and AdminCreate component inShared folder and importthe SharedModuleCreate component ineither Care or Admin

Roles

Search results