문제 해결 모음 2주차
flutter, express, mysql, aws ec2
하지만 위 커맨드 실행 시 ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(''), plugin='mysql_native_password' where user='root'' at line 1 에러 발생
=> mysql2 설치하여 해결.
이후 mysql2에서 위와 같은 문제 발생
=> mysql2 그냥 install하면 24.01.07 기준 라이브러리 내 error 있는듯 함
npm install mysql2@3.0.0 << 이 커맨드로 install
이후 .dart 아무곳에나 print(await KakaoSdk.origin); 코드 추가한 뒤 로그보고 키 해시 찾아서 kakao developer 내 어플리케이션 android에 추가
MVVM(Model-View-ViewModel) 디자인패턴 사용
Model : 어떻게 데이터를 저장하고 처리하는지, 어떤 조건에서 데이터를 변경하는지에 대한 규칙을 정의
View : 사용자의 입력을 받아 ViewModel에 전달하고, ViewModel로부터 데이터를 받아 화면에 표시
Viewmodel : View를 위한 데이터 변환 로직을 포함하여 Model에서 데이터를 가져와 View에 표시하기 적합한 형태로 가공
앱 푸시알림 firebase 통한 다유저 간 사용
https://firebase.google.com/docs/flutter/setup?hl=ko&platform=ios
flutterfire configure에서 project 만들고, firebase console로 들어가서 만든 다음, 다시 flutterfire configure