GithubHelp home page GithubHelp logo

riccardofasan / angular-crm-concept Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 765 KB

A concept on how to build CMRs in Angular around @ngrx/component-store

License: MIT License

TypeScript 99.25% HTML 0.38% SCSS 0.37%

angular-crm-concept's Introduction

Build CRMs in Angular using @ngrx/component-store - a concept

The idea

It is an example on how to use smart and dumb component architecture to build CRMs in Angular that are flexible, easy to maintain, and have simple but robust and flexible state management.

Basically, the application revolves around task and employee entities and has the basic use cases of a CRM, such as displaying paged lists, editing data in forms, and performing CRUD operations via APIs.

Notes

I made full use of the framework's modern techniques, such as the use of standalone components, the use of ChangeDetection.OnPush to improve performance.

There are also examples on how to use those features that are often forgotten by developers

  • custom strategies for dynamic and centralized management of page titles
  • canDeactivate guards to get consent from the user before exiting a form without saving
  • custom validators to separate form validation logic from domain logic and more (for both single inputs and entire form groups)
  • use of ng-template and ng-content to create extendible and reusable components
  • use of injection tokens to develop extendible and reusable services

Ideas for the future

  • Do a refactoring to replace observables as much as possible with Angular's newest signals
  • Add an example on how and use async validators
  • Add a testing coverage (both unit tests and e2e)

Dependencies

angular-crm-concept's People

Contributors

riccardofasan avatar

Stargazers

J. Degand avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.