Skip to content

Angular 7 app with REDUX store implementation, RxJs, ngRx, Jest Marble ,unit testing with Marble Diagrams

Notifications You must be signed in to change notification settings

bitaemi/Angular-ngRx-Jest-Marble

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Table of Contents generated with DocToc

I. Angular for busy devs

Go and study:

Angular App Architecture

To make you curious:

angular-architecture

Automate deployments using Gulp or Webpack

npm i gulp --save-dev One way to automate the build of distributables=web dev artifacts and the copying process on the server is to use Gulp. Look into gulpfile.js

gulp.task("Copy-dist-to-wwwroot", () => {
    return gulp.src("./dist/TaskManager/**/*")
        .pipe(gulp.dest("C:\\Angular\\MvcTaskManager\\MvcTaskManager\\wwwroot"));
});

// by default, whach the dist folder, any time the any of the files from dist folder changes, then copy the files on the server to render
gulp.task("default", () => {
    gulp.watch("./dist/TaskManager", gulp.series("Copy-dist-to-wwwroot"));
});
ng build --watch #starts Angular app and watches for changes
# open new terminal window and start gulp:
gulp #each ttime code is changed it recompiles the app and copies dist files into wwwroot

or detailed Gulp task runner configuration done witht RxJs

Webpack

Angular's CLI uses a tool called Webpack, which is a build automation tool. It gets all of our scripts and style sheets,combines them, puts them in a bundle, and then minifies that bundle, and this is for optimization.

Each time you change your code Webpack automatically recompiles your application and refreshes your bundles(Hot Module Replacement).

Webpack automatically injects all the scripts into our index.html, at runtime: tyles.bundle.js is a container for all the styles of the app compiled into one bundle

No need to do it with Angular CLI, but just to mention it (a full webpack config and doc is here): https://github.com/bitaemi/React-app-Hooks-Context-reducers/tree/master/webpack-configs-apps

2. Typescript Fundamentals

3. Building Blocks of Angular App

4. Displaying Data and Handling Events

5. Building Reusable Components

6. Directives

7. Template driven forms

8. Reactive forms

9. Consuming HTTP Services

    POST - CREATE

    PATCH - UPDATE

    PUT - UPDATE

    DELETE - DELETE

    GET - READ

10. Routing and Navigation

II) Automated testing, Unit Testing, Test Driven Design

1. Automated tests

2. Test Driven Dev - Red, Green, Refactor

2.1 When to Introduce TDD : 2.2 When NOT to Introduce TDD : 2.3 Mesure Success with TDD

3. Unit and Integration Testing

III. NgRx Implementation - REDUX Store in Angular

Understanding the REDUX PATTERN is the key for understanding ngRx Library and using it to programm in a reactive style.

About

Angular 7 app with REDUX store implementation, RxJs, ngRx, Jest Marble ,unit testing with Marble Diagrams

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published