Skip to content

Commit 3f20bdf

Browse files
authored
Deploy to Firebase hosting (#108)
* Configure Firebase hosting to deploy Flutter web app * Update .gitignore * Add Firebase web demo link in README
1 parent e41df1b commit 3f20bdf

File tree

4 files changed

+24
-2
lines changed

4 files changed

+24
-2
lines changed

.firebaserc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"projects": {
3+
"default": "starter-architecture-flutter"
4+
}
5+
}

.gitignore

+3-2
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,6 @@ unlinked_spec.ds
8585
**/ios/Flutter/flutter_export_environment.sh
8686
**/ios/Flutter/.last_build_id
8787

88-
# web
89-
web/firebase-config.js
9088

9189
# Exceptions to above rules.
9290
!**/ios/**/default.mode1v3
@@ -102,3 +100,6 @@ ios/firebase_app_id_file.json
102100
macos/Runner/GoogleService-Info.plist
103101
macos/firebase_app_id_file.json
104102
android/app/google-services.json
103+
104+
# Firebase hosting
105+
.firebase/

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ This is intended as a **reference app** based on my [Riverpod Architecture](http
88

99
> **Note**: this project used to be called "Started Architecture for Flutter & Firebase" (based on this [old article](https://codewithandrea.com/videos/starter-architecture-flutter-firebase/)). As of January 2023, it follows my updated [Riverpod Architecture](https://codewithandrea.com/articles/flutter-app-architecture-riverpod-introduction/), using the latest packages.
1010
11+
## Flutter web preview
12+
13+
A Flutter web preview of the app is available here:
14+
15+
- [Time Tracker | Flutter web demo](https://starter-architecture-flutter.web.app)
16+
1117
## Features
1218

1319
- **Simple onboarding page**

firebase.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"hosting": {
3+
"public": "build/web",
4+
"ignore": [
5+
"firebase.json",
6+
"**/.*",
7+
"**/node_modules/**"
8+
]
9+
}
10+
}

0 commit comments

Comments
 (0)