1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

flutter × firebase プロジェクトの始め方メモ

Last updated at Posted at 2025-04-07

1. プロジェクト作成

flutter create hogehoge

2. githubとプロジェクトを繋ぐ

  1. Create a new repository
  2. …or push an existing repository from the command lineをコピー
git init
git add -A
git commit -m "first commit"
コピーしたやつを貼り付け

3. 不要なプラットフォームを削除

macos, windowsなどのフォルダをそのまま消してOK

4. launch.jsonファイルを作成(ボタンでデバッグを実行できるようにする)

デバッグメニューから launch.jsonファイルを作成Dart & Flutter

5. firebaseのプロジェクトを作成(ターミナルから作成)

リファレンス

  1. flutter pub add firebase_core
  2. dart pub global activate flutterfire_cli
  3. flutterfire configure
  4. create a new project からプロジェクト名を入力し、新規作成

6. firebaseの初期化

リファレンスを参照

7. iosビルド時間の改善

リファレンス

  1. pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '最新バージョン'を追加
  2. platform :ios, '16.0'のコメントアウトを外して、適切なバージョンに
  3. cd ios
  4. pod install

8. プロジェクトごとの設定

Auth, storege, firestoreなどの設定を行う

9. 使用するパッケージをpub addする

念の為、再度pod installを実行しておく

10. modelsを作成する

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?