This project was generated with Angular CLI version 6.0.8.
- Create new project:
ng new swkb -p=swkb --style=scss
cd swkb
- Create basic structure:
ng g module heroes
ng g component heroes/hero-list
ng g component heroes/hero
ng g interface heroes/models/Hero
ng g service heroes/swapi
ng add @angular/material
- Add NgRx & Schematics
yarn add @ngrx/{store,effects,entity,store-devtools}
yarn add -D @ngrx/schematics
ng config cli.defaultCollection @ngrx/schematics
ng g store State --root --module=app.module.ts
ng g effect App --root --module=app.module.ts
ng g feature heroes/Heroes --reducers=../reducers/index.ts
- ng add @ngrx/store
- ng add @ngrx/effects
- ng add @ngrx/store-devtools
yarn add -g @angular-devkit/schematics-cli
schematics schematic --name=fetch-actions
cd fetch-actions
yarn
yarn build
npm link
cd <app-folder>
npm link fetch-actions
ng g fetch-actions:fa heroes/Heroes