Giter Site home page Giter Site logo

60-ngrx-entity-demo's Introduction

Episode 60 - Ngrx Entity CRUD Demo Pizza!

Watch the ngrx entity screencast.

Usage

  • git clone
  • npm install
  • ng serve

60-ngrx-entity-demo's People

Contributors

codediodeio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

60-ngrx-entity-demo's Issues

Integration with Firestore (effect)

Great video and introduction to @ngrx-entity

Can this be expanded to show CRUD with Firestore?

It seams like the structure used and the id's generated have a direct relationship to how entities would work. Also given a firestorm schema that does not conform to the entity structure (where and how this would be handled (in effect as utility ??)

I really think this is a huge time saver for most projects to quickly accomplish CRUD for a feature.

in this example CUD and the read (all the selectors) I guess its now SCUD :)

error when serving up this application with ng serve

I'm getting an error when trying to serve up this project, saying: Cannot read property 'length' of undefined.

Here are my steps: I clone and install the NPM packages no problem:

$ git clone [email protected]:AngularFirebase/60-ngrx-entity-demo.git
$ cd 60-ngrx-entity-demo/
$ npm install

> [email protected] install /home/walrus/proj/60-ngrx-entity-demo/node_modules/node-sass
> node scripts/install.js

Cached binary found at /home/walrus/.npm/node-sass/4.5.3/linux-x64-57_binding.node

> [email protected] postinstall /home/walrus/proj/60-ngrx-entity-demo/node_modules/uglifyjs-webpack-plugin
> node lib/post_install.js

> [email protected] postinstall /home/walrus/proj/60-ngrx-entity-demo/node_modules/node-sass
> node scripts/build.js

Binary found at /home/walrus/proj/60-ngrx-entity-demo/node_modules/node-sass/vendor/linux-x64-57/binding.node
Testing binary
Binary is fine
added 992 packages in 10.099s

However, I get an error serving up the application:

$ ng serve
Cannot read property 'length' of undefined
TypeError: Cannot read property 'length' of undefined
    at createSourceFile (/home/walrus/proj/60-ngrx-entity-demo/node_modules/typescript/lib/typescript.js:15457:109)
    at parseSourceFileWorker (/home/walrus/proj/60-ngrx-entity-demo/node_modules/typescript/lib/typescript.js:15389:26)
    at Object.parseSourceFile (/home/walrus/proj/60-ngrx-entity-demo/node_modules/typescript/lib/typescript.js:15338:26)
    at Object.createSourceFile (/home/walrus/proj/60-ngrx-entity-demo/node_modules/typescript/lib/typescript.js:15192:29)
    at VirtualFileStats.getSourceFile (/home/walrus/proj/60-ngrx-entity-demo/node_modules/@ngtools/webpack/src/compiler_host.js:66:35)
    at WebpackCompilerHost.getSourceFile (/home/walrus/proj/60-ngrx-entity-demo/node_modules/@ngtools/webpack/src/compiler_host.js:191:38)
    at findSourceFile (/home/walrus/proj/60-ngrx-entity-demo/node_modules/typescript/lib/typescript.js:67909:29)
    at processImportedModules (/home/walrus/proj/60-ngrx-entity-demo/node_modules/typescript/lib/typescript.js:68056:25)
    at findSourceFile (/home/walrus/proj/60-ngrx-entity-demo/node_modules/typescript/lib/typescript.js:67937:17)
    at processSourceFile (/home/walrus/proj/60-ngrx-entity-demo/node_modules/typescript/lib/typescript.js:67840:27)
    at processRootFile (/home/walrus/proj/60-ngrx-entity-demo/node_modules/typescript/lib/typescript.js:67728:13)
    at /home/walrus/proj/60-ngrx-entity-demo/node_modules/typescript/lib/typescript.js:67018:60
    at Object.forEach (/home/walrus/proj/60-ngrx-entity-demo/node_modules/typescript/lib/typescript.js:1449:30)
    at Object.createProgram (/home/walrus/proj/60-ngrx-entity-demo/node_modules/typescript/lib/typescript.js:67018:16)
    at AotPlugin._setupOptions (/home/walrus/proj/60-ngrx-entity-demo/node_modules/@ngtools/webpack/src/plugin.js:144:28)
    at new AotPlugin (/home/walrus/proj/60-ngrx-entity-demo/node_modules/@ngtools/webpack/src/plugin.js:30:14)

For your information:

$ ng -v
@angular/cli: 1.4.9

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.