Firestore Tutorial - Database Counter

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ส.ค. 2024
  • Firestore Tutorial - Database Counter
    Escape Tutorial Hell 👉 rebeloper.com/mentoring
    Are you trying to learn Firestore and firebase aggregation? Are you looking for a great Firestore tutorial? Then you are in the right place!
    This firestore ios video is all about firestore vs firebase, what is firebase database and cloud firestore vs realtime database.
    Learn how to Count Likes in Cloud Firestore with Distributed Counters in Swift 5!
    In this video we will dive deep into counters. You will learn how to create a counter, how to update it and how to increment it. We will also discuss Distributed Counters in Cloud Firestore. You will also learn about Firestore sharding.
    If you've ever wondered how to work with google firebase or firebase app, then this video is for you! In these cloud firestor series we will focus on: is firebase free, firebase like button, firestore transaction, firebase rating system and firebase cloud firestore in general. I'll walk you through step-by-step on firebase set, firebase ios swift chat example, firebase product, firestore console and simple chat application in ios. Join me as I break down firebase chat swift github and much more, keep watching!
    Don’t forget to subscribe to my channel for more Firebase and cloud firestore tutorial! You will find awesome videos for firebase developers.
    Let’s dive into this firebase ios tutorial by Rebeloper!
    Let's get to work!
    You can find the full playlist here:
    ∙∙∙ Cloud Firestore for iOS in Swift 5 Master Course ∙∙∙
    → • Cloud Firestore - Gett...
    ∙∙∙ Write Data to Cloud Firestore for iOS in Swift 5 ∙∙∙
    → • Cloud Firestore - Gett...
    ∙∙∙ Update Data in Cloud Firestore for iOS in Swift 5 ∙∙∙
    → • Firestore Tutorial - U...
    ____________________________________________________________________
    → Useful Links →
    ∙∙∙ Atom One Dark Theme in Xcode ∙∙∙
    → • Xcode Themes - How to ...
    ∙∙∙ How to Create Custom Xcode Project Templates (Step by Step) ∙∙∙
    → • How to Create Custom X...
    ∙∙∙ TinyConstraints - Hands on Example ∙∙∙
    → • TinyConstraints - YouT...
    ____________________________________________________________________
    Don’t forget to download the resources:
    → store.rebeloper.com/youtube-c...
    RESOURCES & LINKS MENTIONED IN THIS VIDEO:
    developer.apple.com/xcode/swi...
    developer.apple.com/tutorials...
    **VIDEOS I RECOMMEND**
    UIKit Tutorial Swift 2020
    → • UICollectionView Swift...
    DO YOU WANT TO BE MY APPRENTICE?
    HIRE ME → rebeloper.com/hire-us/
    TOOLS I RECOMMEND:
    → rebeloper.com/tools
    __________
    Say hi on social:
    Get in touch:
    → support@rebeloper.com
    SUBSCRIBE to weekly tips & tutorials for building iOS apps!
    → th-cam.com/users/rebeloper?su...
    Github: github.com/rebeloper/
    Hire me: rebeloper.com/hire-us/
    LinkedIn: / rebeloper
    My Blog: rebeloper.com/blog
    Follow me on Instagram: / rebeloper
    _____
    • Firestore Tutorial - D...
    #rebeloper

ความคิดเห็น • 19

  • @darthjarjar734
    @darthjarjar734 4 ปีที่แล้ว

    Love your videos!

    • @rebeloper
      @rebeloper  4 ปีที่แล้ว

      Awesome. Glad I can help. Have you taken my survey yet? forms.gle/rJCHW5ZqY4MedF4c9

  • @onur5887
    @onur5887 5 ปีที่แล้ว +1

    Thank you.

  • @poojari18
    @poojari18 3 ปีที่แล้ว

    Excellent tutorial. Actually I am looking for android tutorial for Firestore Counter but I am almost clear about this feature, after watching this video. Thanks

    • @rebeloper
      @rebeloper  3 ปีที่แล้ว +1

      Sorry. I'm an iOS only dev. BTW check out my lates tutorial about MVC vs. MVVM: th-cam.com/video/29WppyhWO5c/w-d-xo.html

    • @poojari18
      @poojari18 3 ปีที่แล้ว

      @@rebeloper Its okay. I solved my problem by watching your video.

    • @rebeloper
      @rebeloper  3 ปีที่แล้ว

      Good to hear that. If you liked this video you may be interested in my lates one: UITableView with Custom Cell th-cam.com/video/Pk25DqgfNhU/w-d-xo.html

  • @user-zc1cu1qw8v
    @user-zc1cu1qw8v 5 ปีที่แล้ว

    thank you very helpful, but I have one question, What if I want to sort documents in the order of likes?

    • @rebeloper
      @rebeloper  5 ปีที่แล้ว

      You need to query them. We will cover queries in a video real soon.

  • @WesleyFranks
    @WesleyFranks 3 ปีที่แล้ว +1

    Your webcam layer of your video is covering what you were trying to show us when you increment the counter. Could you please move the webcam layer next time you make a video? Would help so we can see.

    • @rebeloper
      @rebeloper  3 ปีที่แล้ว

      Thanks for the suggestion. Hopefully my newest videos do better. BTW Take a look at my lates video about *NSPredicate and NSFetchrequest in Core Data* : th-cam.com/video/4vefNB4axpg/w-d-xo.html

  • @Neographic84
    @Neographic84 3 ปีที่แล้ว

    Hi Rebeloper ... I'm sorry I'm following this tutorial but I didn't understand very well what shards are! Is this the number of simultaneous taps ?? forgive me but I just can't understand what shards are. Also I wanted to ask you .. the "createCounter" method I need to be called when the user pushes the button but the problem is that the "incrementCounter" method is also inside the button .. Reading the "createCounter" method every time that the user increases does not create problems with calls to the Database?

    • @rebeloper
      @rebeloper  3 ปีที่แล้ว +1

      "Shards" ? I don't recall it... Also, maybe you're right with the createCounter. Haven't tested a while ago. BTW take a look at my latest video: SwiftUI Animation th-cam.com/video/z4xcp7QiUrE/w-d-xo.html

    • @Neographic84
      @Neographic84 3 ปีที่แล้ว

      @@rebeloper do you think that to solve my problem I should: 1. make a query on firestore to check if the counter already exists 2. in case of negative response from the query should I create the counter? Otherwise I can't find a solution because if I call the createCounter function and then hiss after I call the incrementCounter function this won't work because the counter always returns to zero right?

    • @rebeloper
      @rebeloper  3 ปีที่แล้ว

      I think that could work. Do you like SwiftUI? Check out my latest Live Stream on SwiftUI Button Styles: th-cam.com/video/jzLby63iGvI/w-d-xo.html

  • @robertramirez8142
    @robertramirez8142 3 ปีที่แล้ว

    Do you have create a new distributed counter for each new post so you can get the total likes for a specific post?

    • @rebeloper
      @rebeloper  3 ปีที่แล้ว

      Yes. BTW if you liked this video taken look my latest video: th-cam.com/video/UOX2EN9kGas/w-d-xo.html

  • @lmnoobcake
    @lmnoobcake 5 ปีที่แล้ว

    Why u block the view of the firebase with urself on the bottom right?

    • @rebeloper
      @rebeloper  5 ปีที่แล้ว

      Sometimes I miss to edit it out and some parts of the code/screen gets blocked out. Sorry. But you can always take a look at all the resources here: store.rebeloper.com/youtube-channel-resources