Setup Cloud Firestore Database 2021 (SwiftUI, Swift Package Manager)

  Рет қаралды 13,675

CodeWithChris

CodeWithChris

Күн бұрын

Cloud 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 using Swift Package Manager.
🚨 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/...
firebase.google.com/docs/ios/...
Swift Package Manager
swift.org/package-manager/
⏱ Timestamps:
00:00 Intro
01:40 Firebase Overview
03:35 Backend as a Service
04:26 Create an Xcode Project
05:21 Create a Firebase Project
06:43 Downloading the GoogleService-Info File
08:05 Downloading the SDK with the SPM
13:07 Create the Firestore Database
14:31 Outro
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
MY FAVOURITE APP RESOURCES:
📖 The SwiftUI Reference Books I Use - SwiftUI Views Mastery - cwc.to/swiftui-book
💰 How I Monetize My Apps - RevenueCat - cwc.to/revenuecat
🤖 My Automation Tool of Choice - Bitrise - cwc.to/bitrise
🧑‍🎨 What I Use For App Design - Figma - cwc.to/figma
🎨 Figma Design/Prototyping Course - Skillshare - cwc.to/appdesigncourse
MY FAVOURITE GEAR:
🎥 My Camera Gear - cwc.to/gear
WEEKLY UPDATES VIA EMAIL:
✉️ Every Saturday, receive an email digest of new content - cwc.to/newsletter
CONNECT:
🌍 My 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
Note: Some of the links in this description are affiliate links that help support this channel. Thank you if you used any of them!

Пікірлер: 38
@StewartLynch
@StewartLynch 2 жыл бұрын
glad to see you have adopted SPM Chris, So much simpler. FYI, in Xcode 15, the Add Swift Package is no longer a submenu, it is on it’s own. Also, according to Peter Friese, you do want to include the Swift beta packages as well.
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Thank you for your valuable insight Stewart! I'm going to pin your comment so others can see it!
@Sokrates8
@Sokrates8 2 жыл бұрын
This is great! Firestore is now less intimidating, using this straightforward SPM approach.
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Awesome, glad that our video has helped you. All the best! :) -Arthur
@cutecookie
@cutecookie 2 жыл бұрын
It’s really helpful.. thank you!
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Happy to know that we helped you! More helpful content to come so stay tuned! :) -Arthur
@nono-ny1vx
@nono-ny1vx 2 жыл бұрын
cant wait to watch this!
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Thank you so, so much for your support! -Arthur
@iGageit
@iGageit 2 жыл бұрын
I am a visual learner. Thank you for making this detailed video!
@CodeWithChris
@CodeWithChris 2 жыл бұрын
You're so welcome! Glad you enjoyed! :) -Arthur
@avazbekolimov5739
@avazbekolimov5739 2 жыл бұрын
as always both interesting and amazingly helpful videos from CodeWithChris KZfaq channel thanks for your videos, please make more such kind of great videos one each section of Firebase with SwiftUI
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Thanks for learning with us! :) -Arthur
@Wiintb
@Wiintb Жыл бұрын
Did a great job. Got a comment from the great guru @Stewart Lynch as well.!
@free-palestine000
@free-palestine000 2 жыл бұрын
THANK YOU!!! I was going crazy. saw your old tutorial and others and was left so confused and frustrated because no one was showing the newest version.
@CodeWithChris
@CodeWithChris 2 жыл бұрын
You are so welcome! All the best to your projects! :) -Arthur
@grin_phi
@grin_phi Жыл бұрын
Great video When choosing libraries.packages to add, if you grab the very edge of the choose packages window, you can extend the window and see the full title of the packages!
@CodeWithChris
@CodeWithChris Жыл бұрын
Thank you for sharing! - Pat
@vamsi3877
@vamsi3877 2 жыл бұрын
excited
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Subscribe for more! :) -Arthur
@idarkcrackulous
@idarkcrackulous 2 жыл бұрын
Loved this video, Suggestion: New Firestore Authentication Tutorial? :)
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Awesome, can you kindly post your suggestion here? app.productstash.io/codewithchris#/ideas :) -Arthur
@dr.craigcurphey4829
@dr.craigcurphey4829 2 жыл бұрын
Hi Chris - awesome video as always - suggestion ... debugging with a Firestore query - particularly how to handle the very weird way Firestore seems to enter itself and exit itself many times, based on hitting breakpoints set before and after the query, before any data transfer actually takes place. This is with UIKit, not Combine. Developers will definitely struggle with this strange async issue peculiar to Firestore.
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Thanks for support, Dr. Curphey! Can you kindly post your suggestion here: app.productstash.io/codewithchris#/ideas Thank you! :) -Arthur
@PeterFriese
@PeterFriese 2 жыл бұрын
Firebase (like all remote services) makes heavy use of async code. You can either use regular callbacks (like most of our samples and the docs show currently), or use Swift 5.5.s new async/await feature to make your code more straight-line. I created a quick video that shows how to do this *before* Swift 5.5. was released: kzfaq.info/get/bejne/qat7qpVzssm1pIU.html - LMK if you're interested in an up-to-date version of this.
@marypaul9627
@marypaul9627 2 жыл бұрын
Yet another good tutorial am still shopping which db to use for my app...is Firestore better or realtime firebase daytabase better?And if so, which of the 2 do you recommend to me and are they the same?
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Thank you so much, Mary! Kindly post all your questions in our CodeCrew forum to receive tech support. Go here: codecrew.codewithchris.com. Thank you! -Arthur
@aryan7959
@aryan7959 2 жыл бұрын
Hi Chris can you pls make a video on how to make a calculator app on Xcode
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Thanks, Aryan! Can you kindly post your suggestion here: app.productstash.io/codewithchris#/ideas :) -Arthur
@francoischarbonneau7107
@francoischarbonneau7107 2 жыл бұрын
Very good tutorial I have a trivial question. Could we have 2 iOS app and more who can access the same Firebase database? For example, one app to create and manage the database and one more app for explorations of data?
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Bonjour, Francois! Kindly post your question in our CodeCrew forum so that our tech support staff can assist you. Thanks for watching! :) -Arthur
@dr.craigcurphey4829
@dr.craigcurphey4829 2 жыл бұрын
Once the SDK in installed, how can I add FirebaseAuth to the project.
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Hello Craig, the next video comes out tomorrow and will show you everything from reading and saving to deleting data, from your App to Firestore. @AdrienVillez
@hishamp6656
@hishamp6656 2 жыл бұрын
Can we use the firestore used as a free host for apps & website?
@CodeWithChris
@CodeWithChris 2 жыл бұрын
"Hello, yes ofcourse,, they have a limit for number of transactions (read and write) and stuff though for free users.. not really much of problem if only a couple of people use them.. Firebase is by google so treat it like google docs or something - Francis "
@CT1ICE
@CT1ICE 2 жыл бұрын
is there a way to contact you Chris??
@CodeWithChris
@CodeWithChris 2 жыл бұрын
Sure! Send us a message: care@codewithchris.com :) -Arthur
Cloud Firestore Get Data (and other operations) with SwiftUI
41:31
CodeWithChris
Рет қаралды 41 М.
Creating a Swift Package in Xcode
21:54
Stewart Lynch
Рет қаралды 14 М.
Дибала против вратаря Легенды
00:33
Mr. Oleynik
Рет қаралды 5 МЛН
БОЛЬШОЙ ПЕТУШОК #shorts
00:21
Паша Осадчий
Рет қаралды 9 МЛН
ОСКАР vs БАДАБУМЧИК БОЙ!  УВЕЗЛИ на СКОРОЙ!
13:45
Бадабумчик
Рет қаралды 4,8 МЛН
Data Flow in a SwiftUI App
33:15
CodeWithChris
Рет қаралды 52 М.
Intro to Databases (MySQL, CloudKit, Firebase, Core Data, Realm)
20:43
Get Started with Firebase Firestore in iOS | Firebase Bootcamp #8
39:06
Swiftful Thinking
Рет қаралды 11 М.
Cloud Firestore Data Modeling (Google I/O'19)
40:37
Firebase
Рет қаралды 171 М.
How to Make an App - Lesson 1 (2024 / SwiftUI)
27:21
CodeWithChris
Рет қаралды 387 М.
Choosing Photos from the Users Photo Library
30:01
CodeWithChris
Рет қаралды 15 М.
How To Build Responsive User Interfaces with SwiftUI
18:38
CodeWithChris
Рет қаралды 26 М.
Core Data Tutorial - Lesson 1: Core Data Basics
6:47
CodeWithChris
Рет қаралды 64 М.
Firebase Firestore Tutorial - Data Model (Lesson 2)
13:25
CodeWithChris
Рет қаралды 33 М.
Дибала против вратаря Легенды
00:33
Mr. Oleynik
Рет қаралды 5 МЛН