1. firebase-setup 이라는 feature 브랜치를 만든다 2. podfile에 pod 'Firebase/Core' 를 추가한다 실시간 데이터베이스를 사용할 것이므로 pod 'Firebase/Database' 이것도 추가하고 설치해준다 3. Firebase console 에 들어가서 프로젝트를 추가한다 4. Firebase에서 친절히 알려주는 대로 설정을 해준다 5. 앱이 콘솔에 추가되면 Realtime Database를 만들어준다 테스트 모드로 설정해서 읽기 쓰기 가능하게 해준다 --! 이것은 나중에 '규칙'에서 바꿀 수 있다
Firebase를 이용하여 메모를 추가하고 수정/삭제 할 수 있는 간단한 프로젝트를 해보자 : ) 플러스버튼을 눌러서 메모를 저장하고 왼쪽 스와이프로 메모를 수정, 오른쪽 스와이프로 삭제 하도록 프로젝트를 구성하자 이렇게 MVVM 구조로 프로젝트를 짰고 Rx를 사용하였다 : ) 소스코드는 깃헙 에서 볼 수 있다 + git도 같이 연습해보기 위해 master브랜치를 따서 develop브랜치를 만들었다 그 후, feature branch들로 firebase-setup / firebase-insert / firebase-delete / firebase-change 를 만들고 develop 브랜치에 merge해가면서 작업할 것이다 --!
textField.rx.text 하고 subscirbe하면 옵셔널 타입으로 String? 을 받아오는데, 옵셔널 말고 String으로 받아오고 싶으면 orEmpty를 쓰자 -! @IBOutlet weak var addMemoTextField: UITextField! addMemoTextField.rx.text.subscribe { print($0) }.disposed(by: bag) addMemoTextField.rx.text.orEmpty.subscribe { print($0) }.disposed(by: bag) * 결과 next(Optional("ㅇ")) next(ㅇ) * 결과 next(Optional("") next()
- Total
- Today
- Yesterday
- METAL
- PencilKit
- Django FCM
- Django Firebase Cloud Messaging
- Python Type Hint
- github actions
- drf custom error
- ipad multitasking
- 구글 Geocoding API
- 플러터 얼럿
- Flutter getter setter
- flutter build mode
- SerializerMethodField
- flutter deep link
- Django Heroku Scheduler
- Flutter Spacer
- 장고 URL querystring
- 플러터 싱글톤
- ribs
- Dart Factory
- Flutter Clipboard
- cocoapod
- Flutter 로딩
- Flutter Text Gradient
- Sketch 누끼
- DRF APIException
- 장고 Custom Management Command
- flutter 앱 출시
- flutter dynamic link
- Watch App for iOS App vs Watch App
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |