Skip to content

Todo App using good practices and managing the state using NGRX

Notifications You must be signed in to change notification settings

oliverdjbrown/Angular-Todo-App-Ngrx

Repository files navigation

Angular Todo App - Implementing Redux Pattern

Todo App using good practices and managing the state using NGRX

Used Technology

Project Structure

Modules are grouped by functionality

State => Ngrx (actions / reducer by folders).

Todos => Models, Pages (Views).

Core => Main Services, Enums.

Shared => Module with reusable code like UI components and pipes.

Good Practices

  • APP

  • Atomic Designe (Smart and Dumbs Components)

  • App.Module

  • Imports group by library, StoreModule imports a ts file to avoid a big list.

  • Group functionality in folder so everything is together.

  • Avoid the use of any by specifying all variable types.

  • Prevent array or object mutation by returning a new object.

  • App.Shared

  • Create a shared module with functionality to be export as global functionality like UI components or filter pipe (DRY).

  • Group components and pipes in an individual array for easy import and export.

  • Core.Module

  • Main services by library for high cohesion and low coupling

Links

About

Todo App using good practices and managing the state using NGRX

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published