GithubHelp home page GithubHelp logo

lmfinney / toh-ngrx4 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from johnpapa/angular-tour-of-heroes

5.0 2.0 1.0 282 KB

Angular - Tour of Heroes - Modularization, Observables, @ngrx4, etc.

License: Apache License 2.0

TypeScript 79.04% JavaScript 4.32% CSS 10.38% HTML 6.26%

toh-ngrx4's Introduction

Getting Started

This is a modification of John Papa's version of the Tour of Heroes tutorial application. The point of this fork is to show features that are current best practices in Angular application design beyond what is covered by the tutorial.

Compared to the base version, this version makes the following changes in consecutive commits:

  1. Moving the components to their own modules.
  2. Removing the conversion of Observables to Promises.
  3. Moving data management into @ngrx v4 store and effects (combined with implementing the Presentational/Container component pattern).

Further steps that aren't included at this point could include the following:

  1. Internationalization support.
  2. Introducing Reactive forms for the search box.
  3. Enforcing immutability in the @ngrx store.
  4. Using ngrx-enums to remove boilerplate in @ngrx actions and reducers.

Thanks to Nick Klepinger for providing inspiration through an earlier update of Tour of Heroes using older versions of @ngrx, etc.

I presented on this project at Angular Lunch in August 2017: Presentation

Get the Code

git clone https://github.com/LMFinney/toh-ngrx4.git
cd toh-ngrx4
npm i

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

If you want to use a different port (say 4201), run ng serve --port 4201 and navigate to http://localhost:4201/.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the -prod flag for a production build.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

This project was generated with Angular CLI version 1.2.0.

toh-ngrx4's People

Contributors

antonybudianto7 avatar aymone avatar cgmartin avatar jodytate avatar johnpapa avatar lmfinney avatar mloureiro avatar scottescue avatar wardbell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

starjumper30

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.