You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+62-1Lines changed: 62 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ It also features a lightweight Content Management System (CMS) for creating and
10
10
https://weaponsforge.github.io/gsites-components/
11
11
12
12
#### Development (Playground) App
13
-
https://gsites-components.web.app/
13
+
https://climate-profile-dev.web.app/
14
14
15
15
```
16
16
EXAMPLE USER (Development App Only)
@@ -115,5 +115,66 @@ docker compose -f docker-compose.prod.yml up
115
115
docker compose -f docker-compose.prod.yml down
116
116
```
117
117
118
+
## Deploy With GitHub Actions
119
+
120
+
### Requirements
121
+
122
+
1. Two (2) Firebase Projects (to use for development/production environments), pre-activated with:
123
+
- Firestore Database
124
+
- Firebase Storage
125
+
- Firebase Hosting
126
+
- Authentication (Email/Address)
127
+
128
+
> [!TIP]
129
+
> Refer to the server README for additional setup information
130
+
131
+
2. Firebase configuration settings for each of the two (2) Firebase projects.
132
+
133
+
3. Service account JSON file for each of the two (2) Firebase projects.
134
+
135
+
## Steps
136
+
137
+
Follow the steps to self-host the project in your own repository and Firebase projects.
138
+
139
+
### 1. GitHub Secrets
140
+
141
+
Create the following GitHub Secrets, using values from the Firebase (web) configuration and settings from the requirements.
142
+
143
+
| GitHub Secret | Description |
144
+
| --- | --- |
145
+
| NEXT_PUBLIC_BASE_PATH | Root directory path name that NextJS uses for assets, media and client-side routing for the app.<br><br>Set its value to blank `''` when working on development mode in localhost.<br><br>Set its value to the sub-directory name where the exported NextJS app is to be deployed, i.e. `/<YOUR_REPOSITORY_NAME>` when<br> deploying on a repository (sub-directory) of a root GitHub Pages site, i.e, on `https://<YOUR_GITHUB_USERNAME>.github.io/<YOUR_REPOSITORY_NAME>`|
146
+
| FIREBASE_WEB_API_KEY_DEV | Firebase web API key from the Firebase Project Settings configuration file for the (development) environment. |
147
+
| FIREBASE_WEB_AUTHDOMAIN_DEV | Firebase web auth domain key from the Firebase Project Settings configuration for the (development) environment. |
148
+
| FIREBASE_WEB_PROJECT_ID_DEV | Firebase web project ID from the Firebase Project Settings configuration file for the (development) environment. |
149
+
| FIREBASE_WEB_STORAGE_BUCKET_DEV | Firebase web storage bucket key from the Firebase Project Settings configuration file for the (development) environment. |
150
+
| FIREBASE_WEB_API_KEY_PROD | Firebase web API key from the Firebase Project Settings configuration file for the (production) environment. |
151
+
| FIREBASE_WEB_AUTHDOMAIN_PROD | Firebase web auth domain key from the Firebase Project Settings configuration for the (production) environment. |
152
+
| FIREBASE_WEB_PROJECT_ID_PROD | Firebase web project ID from the Firebase Project Settings configuration file for the (production) environment. |
153
+
| FIREBASE_WEB_STORAGE_BUCKET_PROD | Firebase web storage bucket key from the Firebase Project Settings configuration file for the (production) environment. |
Copy file name to clipboardExpand all lines: client/README.md
+15-2Lines changed: 15 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
## gsites-components
1
+
## /gsites-components/client
2
2
3
3
Testing display of all related content based on a URL query string.
4
4
@@ -18,7 +18,7 @@ Testing display of all related content based on a URL query string.
18
18
https://weaponsforge.github.io/gsites-components/
19
19
20
20
#### Development App
21
-
https://gsites-components.web.app/
21
+
https://climate-profile-dev.web.app/
22
22
23
23
```
24
24
EXAMPLE USER (Development App Only)
@@ -42,6 +42,19 @@ password: useruser
42
42
| NEXT_PUBLIC_FIREBASE_WEB_STORAGE_BUCKET | Firebase web storage bucket key from the Firebase Project Settings configuration file. |
43
43
| WATCHPACK_POLLING | Enables hot reload on NextJS apps (tested on NextJS v13.2.1) running inside Docker containers on a Windows host. Set it to `true` if running Docker Desktop with WSL2 on a Windows OS. |
44
44
45
+
3. Update the `.firebaserc` file.
46
+
- Replace all instances of the `FIREBASE_PROJECT_DEV` text with the **development** Firebase project ID.
47
+
- Replace all instances of the `FIREBASE_PROJECT_PROD` text with eth **production** Firebase project ID.
48
+
- Replace the `FIREBASE_HOSTING_DEV` text with the **development** Firebase Hosting website name (minus the `".web.app"`)
49
+
50
+
> [!WARNING]
51
+
> Do not commit the updates in the `.firebaserc` file, if you plan on deploying updates using GitHub Actions.<br>
52
+
> Do the following to avoid commiting local updates in the `.firebaserc` file:
0 commit comments