How to Setup Firestore database for your SwiftUI app (2021)

  Рет қаралды 25,124

CodeWithChris

CodeWithChris

Күн бұрын

Firestore is a free remote database service that you can use with your mobile app. This enables you to do a lot of cool things for your app such as have user accounts, user generated data, data syncing across devices and more.
This video is Part 1 of a series on how to start using Firestore database with your iOS app. In this lesson, you’ll learn how to set up your Firestore database and integrate the Firebase SDK with your Xcode project.
If you’re using an M1 mac, you’ll also get special tips on the setup process.
🚨 SPECIAL CWC+ OFFER FOR KZfaq:
cwc.to/youtubeoffer
Project source code can be found here:
github.com/codewithchris/fire...
Firebase
firebase.google.com/
Documentation
firebase.google.com/docs/ios/...
Using CocoaPods on M1 Mac
/ simple-way-to-use-coco...
⏱ Timestamps:
00:00 Intro
00:58 Firebase Overview
03:05 Backend as a Service
03:58 Create an Xcode Project
04:38 Create a Firebase Project
06:27 Download the GoogleService-Info Conf File
09:14 Set Up CocoaPods
11:07 Add the Firebase SDK to Xcode
17:02 CocoaPods Issues with M1 Macs
19:41 Create a Firestore Database
MY FREE ONLINE COURSE:
⚡ How to make an app in 14 days - cwc.to/14days
CWC+ PROGRAM:
👩‍💻 All our courses in a learning path - cwc.to/plus
WEEKLY UPDATES VIA EMAIL:
✉️ Every Saturday, receive an email digest of new content - cwc.to/newsletter
CONNECT:
🌍 Website - codewithchris.com
😺 GitHub - github.com/codewithchris
📸 Instagram - / codewithchris
🐦 Twitter - / codewithchris
ABOUT CODEWITHCHRIS:
Hi I’m Chris! I’m dedicated to teaching fundamentals about how to make an app. This is important if you’re trying to land an iOS job, be a freelancer, increase or start a business with an app idea. On this channel and my website, you'll find a ton of free resources and tutorials to aid you on your journey to learn iOS development. Many people have learned to code and build apps on their own! cwc.to/reviews

Пікірлер: 81
@ExperimentalAdventure
@ExperimentalAdventure 2 жыл бұрын
Chris, this was an excellent tutorial, and one I have been hoping to come across for some time. I am working on my first app with a database. It's nice when someone can go through a tutorial and it work as expected on the first try! Thank you!
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Thank you so much, Kelly! You have no idea how much these comments mean to us. Thanks again! -Arthur
@edwardphan4965
@edwardphan4965 2 жыл бұрын
This is such a great compliment to the Database course in CWC+ , woohoo, thank you Chris!
@CodeWithChris
@CodeWithChris 2 жыл бұрын
You're so welcome, Edward! We're glad that you're benefitting so much from our course! -Arthur
@sarikapaghdal6150
@sarikapaghdal6150 2 жыл бұрын
Your voice tone is very calm and we can easily hear every word as you speaks. Great video! thank you for explaining in detail!
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Thanks for the love! -Arthur
@kdtechniquesofficial6153
@kdtechniquesofficial6153 2 жыл бұрын
You speak in English slowly intentionally so nonnative English speakers can easily understand what you say. That's awesome. And thank you for that. It doesn't matter whether the video is gonna take so long or not. we don't give a s**t about that. So do every video like this rhythm so we can understand it better. The way you're currently doing things is right. And also you go through steps bit slowly compared to other KZfaqrs and that's also good because we can clearly see each step and I love it. Thanks, Chris. There are only two KZfaq channels I like the most when it comes to SwiftUI. One of them is yours. So, you should be proud of yourself. Good Luck. :)
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Thank you so much for this very lovely comment. Means a lot. :) -Arthur
@shobhabhavsar277
@shobhabhavsar277 2 жыл бұрын
Excellent tutorial on Firebase database, and the way of explanation is awesome. thank you so much Chris.
@CodeWithChris
@CodeWithChris 2 жыл бұрын
You're the best, thank you! -Arthur
@123tremolo
@123tremolo 2 жыл бұрын
Very helpful and crystal clear. Thank you so much!
@CodeWithChris
@CodeWithChris 2 жыл бұрын
You are so welcome! Thank you! -Arthur
@rohin5384
@rohin5384 2 жыл бұрын
Thank you! You are a champion, I followed the tutorial and you helped me!
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Appreciate the love, Rohin! Thank you so much! -Arthur
@agninoormuhammad5560
@agninoormuhammad5560 2 жыл бұрын
Chris, this is very on point! Thanks!
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Salaam, thanks for the love! Shukran! -Arthur
@marekdado4282
@marekdado4282 2 жыл бұрын
Thx so much :) this video was very helpful
@CodeWithChris
@CodeWithChris 2 жыл бұрын
You are so welcome! -Arthur
@vithushanlogeswaran8422
@vithushanlogeswaran8422 2 жыл бұрын
Thanks, waiting for the next video.
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Appreciate it, thanks for being here! -Arthur
@Akash-bg5wq
@Akash-bg5wq 2 жыл бұрын
Thanks @chris for special offer on your courses 😍
@CodeWithChris
@CodeWithChris 2 жыл бұрын
You are so welcome! :-) -Arthur
@user-hv5cp2uf1q
@user-hv5cp2uf1q Жыл бұрын
Mann thank a lot 😍😍😍
@CodeWithChris
@CodeWithChris Жыл бұрын
Thank you for watching! - Pat
@jhchoi1905
@jhchoi1905 2 жыл бұрын
You Saved Me !!!!! Thank you Chris !!! from junior developer of south korea
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Annyeonghaseyo! Thanks for learning with us! Means a lot! -Arthur
@pacioss_
@pacioss_ 2 жыл бұрын
Why you don't use Swift Package Manager?
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Thanks for your insight! -Arthur
@LeviM337
@LeviM337 2 жыл бұрын
Brilliant!
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Cheers, thank you! -Arthur
@anvarjonkhojimatov5936
@anvarjonkhojimatov5936 2 жыл бұрын
Thank you 👍
@CodeWithChris
@CodeWithChris 2 жыл бұрын
You are so welcome! -Arthur
@edwardphan4965
@edwardphan4965 2 жыл бұрын
that keyboard sound though 👌
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Yay, thank you, Edward! :-) -Arthur
@timothyquigley1488
@timothyquigley1488 2 жыл бұрын
Thank you!! Is a link to part II available?
@CodeWithChris
@CodeWithChris 2 жыл бұрын
We'll get on it soon, Timothy, thanks for learning with us! -Arthur
@abrahimmahmud150
@abrahimmahmud150 2 жыл бұрын
Hey, Chirs! Can you make an up to date tutorial on how to authenticate using google sign in? There have been some updates in the documentation and I've been having a rough time getting around it or finding an up to date tutorial.
@CodeWithChris
@CodeWithChris 2 жыл бұрын
"Hello, sadly we only used email signin using Firebase, you can however use this option to let firebase also handle google signin.. just follow the same instructions it should be similar and just use AuthUI for google signin - Francis"
@StewartLynch
@StewartLynch 2 жыл бұрын
Great video but Swift Package Manager is now fully supported and much easier to manage
@CodeWithChris
@CodeWithChris 2 жыл бұрын
I see, thanks for dropping by here, Stewart! :-) -Arthur
@StewartLynch
@StewartLynch 2 жыл бұрын
@@CodeWithChris here is a link to a video I made on migrating from CocoaPods to SPM for Firebase. kzfaq.info/get/bejne/Y55km5lyyMiahYE.html
@DavidNitzscheBell
@DavidNitzscheBell 2 жыл бұрын
Agreed. MUCH, MUCH easier. I gave up cocoapods about 6 months ago. Never going back.
@bleulejour
@bleulejour Жыл бұрын
It would be nice if you create a tutorial for messaging. Thanks!
@CodeWithChris
@CodeWithChris Жыл бұрын
You can post tutorial recommendations here app.productstash.io/codewithchris#/ideas :) - Pat
@VikramKumar-yr2mv
@VikramKumar-yr2mv 2 жыл бұрын
Hello Please suggest live streaming SDK for iOS
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Thanks for your comment! We'll see what we can do! -Arthur
@manarmohammed7240
@manarmohammed7240 2 жыл бұрын
in 8:54 is it okay that you didn't get a check mark on the step of downloading the configure file ?
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Hello! Kindly post your question in our CodeCrew forum so that our technical support staff can guide you. Go here: codecrew.codewithchris.com. Thanks for learning with us! -Arthur
@abdullahalnutayfi8103
@abdullahalnutayfi8103 2 жыл бұрын
Hi, I want to upload multiple images at a time to real-time database, how,? I did it but sometimes all images uploaded successfully, sometimes just some of them
@CodeWithChris
@CodeWithChris 2 жыл бұрын
"Hello, since it is already uploading then you might need to check yourself on what the issue might be.. it could be an internet issue, an issue with security, or maybe the code was not able to capture and loop through the multiple uploads properly - Francis"
@xkube8694
@xkube8694 2 жыл бұрын
Hi Mr. Chris, My dad is teaching me swift but I keep forgetting everything I'm onto Swiftui But I still barely understand but When I'm in class I can do everything he askes of me but when it comes to writing code on my own I can't do it I need help do you have any tips or some advice?
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Hello, best if you start here so we can guide you and you can start practicing! codewithchris.com/start :-) -Arthur
@xkube8694
@xkube8694 2 жыл бұрын
@@CodeWithChris thank you :)
@rohansathisha2109
@rohansathisha2109 Ай бұрын
Hey after creating a firestore database I received an error with sandbox, how do I fix this?
@emdutt4012
@emdutt4012 Жыл бұрын
do i need to write 'pod firebase' before ' pod firebase/firestore'
@frankopokukoduah194
@frankopokukoduah194 4 ай бұрын
What’s the name of the firestore playlist on your channel
@CodeWithChris
@CodeWithChris 4 ай бұрын
Hi! Here's the link of the Firestore tutorial from 2019: kzfaq.info/sun/PLMRqhzcHGw1ZsFRLAWa_Axx7daXteynjh The content is outdated, so I'd recommend learning from the Firebase docs directly instead: firebase.google.com/docs/firestore/quickstart#swift I hope that helps! - Iñaki
@yslsml
@yslsml 2 жыл бұрын
what should i do if my projects didn't compile? i did everything just like you, but i don't have Firebase folder in my Pods...
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Hello, kindly post your question in our CodeCrew forum so that our tech support staff can assist you. Go here: codecrew.codewithchris.com. Thank you! -Arthur
@carrson9395
@carrson9395 2 жыл бұрын
What if I need my project to last longer than 30 days? How can I get around this limit?
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Hello, kindly post your question on our CodeCrew forum so that our technical support staff can guide you: codecrew.codewithchris.com. Thank you! -Arthur
@hallo_ween07
@hallo_ween07 2 жыл бұрын
Hey, where did you learn Xcode and everything else? I have no money for a $100 Udemy course😔😢. I am 14 and really interested in App development !
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Hello, best to start here: codewithchris.com/start -Arthur
@hallo_ween07
@hallo_ween07 2 жыл бұрын
Thanks 🙏
@Immoonwalker
@Immoonwalker 2 жыл бұрын
When i tried to install cocoapod it said is not in the sudoers file. This incident will be reported. I am on a M1 mac
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Hello, best to post this question on our CodeCrew forum so that our tech support staff can assist you. Go here: codecrew.codewithchris.com. Thank you! :) -Arthur
@omggodbs
@omggodbs 2 жыл бұрын
i didnt have any errors when doing pod install and I am on an M1 Macbook Air
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Awesome! :) -Arthur
@aydncanataberk4083
@aydncanataberk4083 Жыл бұрын
I was wondering the current state, thanks for the update
@fayyadahnafhassan7596
@fayyadahnafhassan7596 2 жыл бұрын
Can you do how to put super Mario 64 on iOS because I want to play super Mario 64 furthermore I don’t have a Nintendo 64 in addition and even though Super Mario 64 is a cool game and not boring for me so can you please teach me:( How to install super Mario 64 from the App Store after you put super Mario 64 on the App Store
@CodeWithChris
@CodeWithChris 2 жыл бұрын
"Hello, you are better off just downloading an emulator for that and maybe downloading the game disk or something so you can play it via the emulator - Francis"
@NTuneLabs
@NTuneLabs 2 жыл бұрын
Great tutorial Chris, thank you. Am I correct in assuming that Firebase would cost a fee if we were using it for a real back end, serving and receiving data? We already have a Woocommerce database on our business website... would there also be a way to implement that server as well? I really have no idea when it comes to the ins and outs of this. I would love to put our online music store ecommerce to an app, along with the website.
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Hello, best if you post this question in our CodeCrew forum so that our technical support staff can guide you. Go here: codecrew.codewithchris.com. Thanks for learning with us! -Arthur
@cyberrage8658
@cyberrage8658 2 жыл бұрын
Do this for swift?
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Sorry, can you clarify your question? -Arthur
@cyberrage8658
@cyberrage8658 2 жыл бұрын
@@CodeWithChris Sorry bout that. Could you make a video on the same thing but for swift please?
@sols.2525
@sols.2525 2 жыл бұрын
I love your content but I wish you would have used swift package manager in this one.
@CodeWithChris
@CodeWithChris 2 жыл бұрын
All right, you echo the sentiments of other people here. Thanks for your insight! :-) -Arthur
@lofistudywithsayasan912
@lofistudywithsayasan912 Жыл бұрын
What's Kuku?)
@pathikshah
@pathikshah 2 жыл бұрын
First comment 😅 Can I get free CWC+ for 1year ? 😂
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Haha! Watch out for our promotions. :-) -Arthur
Cloud Firestore Get Data (and other operations) with SwiftUI
41:31
CodeWithChris
Рет қаралды 41 М.
Data Flow in a SwiftUI App
33:15
CodeWithChris
Рет қаралды 52 М.
Happy 4th of July 😂
00:12
Pink Shirt Girl
Рет қаралды 60 МЛН
Final muy increíble 😱
00:46
Juan De Dios Pantoja 2
Рет қаралды 54 МЛН
ОСКАР vs БАДАБУМЧИК БОЙ!  УВЕЗЛИ на СКОРОЙ!
13:45
Бадабумчик
Рет қаралды 4,8 МЛН
Build your second iOS app with SwiftUI
2:32:07
Paul Hudson
Рет қаралды 45 М.
Setup Cloud Firestore Database 2021 (SwiftUI, Swift Package Manager)
15:16
iOS Core Data QuickStart Tutorial 2020
1:10:58
CodeWithChris
Рет қаралды 100 М.
SwiftUI Tutorial for Beginners (3.5 hour FULL COURSE)
3:20:07
CodeWithChris
Рет қаралды 1,1 МЛН
SwiftUI List with Custom Cell & Passing Data
36:27
Sean Allen
Рет қаралды 115 М.
Firebase Authentication Tutorial 2020 - Custom iOS Login Page (Swift)
1:37:02
Connect Firebase to Xcode: A Step-by-Step Tutorial | Firebase Bootcamp #1
21:07
How To Work With Any API (API Tutorial using URL Requests)
27:07
CodeWithChris
Рет қаралды 124 М.