Giter Club home page Giter Club logo

angularstatemanagement's Introduction

AngularStateManagementAPP

This project was generated with Angular CLI version 8.3.2. It's a sample Angular state management application using NGRX: @ngrx/store, @ngrx/effects, @ngrx/schematics, @ngrx/store, @ngrx/store-devtools.

Almost all files related with state was generated using: @ngrx/schematics.

Development server

Just run spm start for a dev server. Navigate to http://localhost:4200/.

Project Sructure

As the Angular way, all the application files are in src/app folder, with the following content (using the feature module pattern):

.
|____app-routing.module.ts
|____app.component.html
|____app.component.scss
|____app.component.spec.ts
|____app.component.ts
|____app.effects.spec.ts
|____app.effects.ts
|____app.module.ts
|____layouts
| |____navigation
| | |____navigation.component.ts
|____pages
| |____home
| | |____home-routing.module.ts
| | |____home.component.ts
| | |____home.module.ts
| |____product
| | |____components
| | | |____form
| | | | |____form.component.html
| | | | |____form.component.scss
| | | | |____form.component.spec.ts
| | | | |____form.component.ts
| | | |____nav
| | | | |____nav.component.ts
| | | |____toast-messages
| | | | |____toast-messages.component.ts
| | |____models
| | | |____product.ts
| | | |____productHttpRequest.ts
| | |____product-add
| | | |____product-add.component.ts
| | |____product-edit
| | | |____product-edit.component.ts
| | |____product-list
| | | |____product-list.component.ts
| | |____product-routing.module.ts
| | |____product.module.ts
| | |____services
| | | |____gallery-http.service.ts
| | | |____product-http.service.ts
| | |____store
| | | |____product.actions.ts
| | | |____product.effects.ts
| | | |____product.reducers.ts
| | | |____product.selectors.ts
| | | |____product.state.ts
|____reducers
| |____index.ts

App highlights

1) A sample CRUD for products

  • Using Observables and async pipe.
  • All the actions are done first on state.
  • Interface for HttpRequest and Product

2) What's include:

  • Sample Restful endpoit for Products
  • Sample Restful endpoint for Image Gallery
  • Sample image gallery to choose a product image
  • Image loading placeholder to keep the UI consistent

Working example: here

Continuous Deployment using now.sh

angularstatemanagement's People

Contributors

dependabot[bot] avatar newaeonweb avatar

Watchers

 avatar  avatar  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.