/example-app

Example app showcasing the ngrx platform

Primary LanguageTypeScriptMIT LicenseMIT

#@ngrx example application

Example application utilizing @ngrx libraries, showcasing common patterns and best practices.

This app is a book collection manager. Using the Google Books API, the user can search for books and add them to their collection. This application utilizes @ngrx/db to persist the collection across sessions; @ngrx/store to manage the state of the app and to cache requests made to the Google Books API; @ngrx/router to manage navigation between routes; and @ngrx/effects to isolate side effects.

Included

  • ngrx/store - RxJS powered state management for Angular2 apps, inspired by Redux
  • ngrx/effects - Side effect model for @ngrx/store
  • ngrx/router - Reactive Routing for Angular 2
  • ngrx/db - RxJS powered IndexedDB for Angular2 apps
  • ngrx/router-store - Bindings to connect ngrx/router to ngrx/store

Quick start

# clone the repo
git clone https://github.com/ngrx/example-app.git

# change directory to repo
cd example-app

# run npm install
npm install

# start the server
npm run start

Navigate to http://localhost:8080/ in your browser