Fireship · @fireship

Angular Firebase CRUD App with NoSQL Database Tutorial

Uploaded April 19, 2017 · Length 4:21

Angular Firebase CRUD App with NoSQL Database Tutorial

Summary

build a to-do list feature with Angular and Firebase NoSQL database

  • angular firebase crud
  • firebase nosql database
  • angular tutorial
  • crud operations
  • angular firebase tutorial

Transcript preview

The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.

  1. 0:01

    in this episode we're going to build a

  2. 0:03

    to-do list feature that performs the SQL

  3. 0:06

    style crud operations of create read

  4. 0:08

    update and delete no SQL uses different

  5. 0:11

    terms for these operations so here's a

  6. 0:14

    basic translation when working with

  7. 0:16

    Firebase create equals push read equals

  8. 0:20

    list or object update equals update or

  9. 0:24

    set and delete equals

  10. 0:27

    remove angular apps work with

  11. 0:30

    asynchronous data streams using rxjs or

  12. 0:33

    reactive extensions for

  13. 0:35

    JavaScript a data stream can be pretty

  14. 0:38

    much anything but in this context we're

  15. 0:40

    talking about objects from the Firebase

  16. 0:42

    real-time

  17. 0:45

    database at this point it's assumed you

  18. 0:47

    have the angular Fire 2 package

  19. 0:49

    installed and bootstrapped into your app

  20. 0:51

    if not go to the docs or check out our

  21. 0:54

    environment setup

  22. 0:58

    video start by generating the necessary

  23. 1:01

    files from the command line the feature

  24. 1:03

    is just a simple list of to-do items

  25. 1:05

    that could be modified by

  26. 1:09

    users we will give items their own

  27. 1:11

    typescript class to keep our data nice

  28. 1:13

    and

  29. 1:14

    [Music]

  30. 1:20

    organized all the cred magic happens in

  31. 1:22

    the service which is going to perform

  32. 1:24

    six different operations it can get a

  33. 1:27

    list of items get a single item create a

  34. 1:30

    new item update an existing item delete

  35. 1:33

    an existing item and delete an entire

  36. 1:35

    list of

  37. 1:37

    items start by importing dependencies

  38. 1:41

    and declaring a couple public

  39. 1:44

    variables when we get an item or list of

  40. 1:47

    items they will be returned as an

  41. 1:49

    observable which can then be unwrapped

  42. 1:51

    asynchronously from the component the

  43. 1:53

    functions for getting an item or List

  44. 1:55

    will return the observable so it can

  45. 1:57

    then be set to a public variable all