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
+43-5Lines changed: 43 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -14,8 +14,9 @@ A basic web app client in the **/client** directory will show basic API usage an
14
14
-[Docker Dependencies](#docker-dependencies)
15
15
-[Docker for Localhost Development](#docker-for-localhost-development)
16
16
-[Docker for Production Deployment](#docker-for-production-deployment)
17
-
-[Pre-built Server Docker Image](#pre-built-server-docker-image-app)
18
-
-[Pre-built Server Docker Image](#pre-built-server-docker-image-client--server-development)
17
+
-[Pre-built Server Docker Image (App)](#pre-built-server-docker-image-app)
18
+
-[Pre-built Server Docker Image (Client + Server) Development](#pre-built-server-docker-image-client--server-development)
19
+
-[Deploy with GitHub Actions](#deploy-with-gitHub-actions)
19
20
-[References](#references)
20
21
21
22
## Requirements
@@ -56,6 +57,8 @@ A basic web app client in the **/client** directory will show basic API usage an
56
57
|EMAIL_WHITELIST| Comma-separated email addresses linked to Firebase Auth UserRecords that are not allowed to be deleted or updated (write-protected)<br><br>Default value is `[email protected]`|
57
58
|ALLOW_CORS|Allow Cross-Origin Resource Sharing (CORS) on the API endpoints.<br><br>Default value is `1`, allowing access to domains listed in `ALLOWED_ORIGINS`. Setting to `0` will make all endpoints accept requests from all domains, including Postman.|
58
59
|ALLOW_AUTH|Restrict access to the `POST`, `PATCH` and `DELETE` API endpoints by allowing signed-in Firebase user Bearer Authorization (Firebase token) checking.<br><br>Retrieve the signed-in Firebase token by signing in a user using the Firebase Web JS SDK `signInWithEmailAndPassword()` method, then retrieve the latest token value using `getIdTokenResult()`.<br><br>Default value is `1`. Setting to `0` will disable Bearer Authorization checking on the listed API endpoints.|
60
+
| CHOKIDAR_USEPOLLING | Enables hot reload on `nodemon` running inside Docker containers on a Windows host. Set it to true if running Docker Desktop with WSL2 on a Windows OS. |
61
+
| CHOKIDAR_INTERVAL | Chokidar polling interval. Set it along with `CHOKIDAR_USEPOLLING=true` if running Docker Desktop with WSL2 on a Windows OS. The default value is `1000`. |
59
62
60
63
### client
61
64
@@ -82,6 +85,7 @@ A basic web app client in the **/client** directory will show basic API usage an
82
85
| REACT_APP_FIREBASE_MESSAGING_SENDER_ID | Firebase web messaging sender ID from the Firebase Project Settings configuration file. |
83
86
| REACT_APP_FIREBASE_APP_ID | Firebase web web app key from the Firebase Project Settings configuration file. |
84
87
| REACT_APP_FIREBASE_MEASUREMENT_ID | Firebase web measurement ID from the Firebase Project Settings configuration file. |
88
+
| WATCHPACK_POLLING | Enables hot reload on React apps running inside Docker containers on a Windows host. Set it to `true` if running Docker Desktop with WSL2 on a Windows OS. |
85
89
86
90
4. Run the app in development mode.
87
91
`npm start`
@@ -234,8 +238,8 @@ The server also serves the pre-built `client` website from a static directory us
234
238
### Steps
235
239
236
240
1. Pull the (production) **/server**[Docker image](https://hub.docker.com/repository/docker/ciatphdev/firebase-users-app) from Docker Hub.
237
-
- Find the latest version tag from https://hub.docker.com/r/ciatphdev/firebase-users-app, i.e., `v1.1.5`
- Read [**Installation - server #3**](#server) for more information.
241
245
- Replace the variables accordingly in the `.env` file. Set `ALLOW_CORS=0` to allow `Same Origin` requests. Read [**Option #2 - Client and Server Bundled in (1) Image and Service**](#option-2---client-and-server-bundled-in-1-image-and-service) for more information.
@@ -252,7 +256,7 @@ The server also serves the pre-built `client` website from a static directory us
252
256
docker run -it --rm \
253
257
--env-file .env \
254
258
-p 3001:3001 \
255
-
ciatphdev/firebase-users-admin-app:v1.1.5
259
+
ciatphdev/firebase-users-admin-app:v1.1.6
256
260
```
257
261
4. Run a script in the container to create the default `[email protected]` account, if it does not yet exist in the Firestore database.
258
262
`docker exec -it firebase-users-admin-app npm run seed`
Copy file name to clipboardExpand all lines: server/src/utils/templates/header.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -22,8 +22,8 @@ firebase-users-admin's server component, hosting all the listed endpoints below
22
22
The server also serves a pre-built [`client`](https://github.com/ciatph/firebase-users-admin/tree/dev/client) website from a static directory using the `express.static()` middleware, following the build instructions from [**Option #2 - Client and Server Bundled in (1) Image and Service**](https://github.com/ciatph/firebase-users-admin#option-2---client-and-server-bundled-in-1-image-and-service).
23
23
24
24
1. Pull the (production) **/server**[Docker image](https://hub.docker.com/repository/docker/ciatphdev/firebase-users-app) from Docker Hub.
25
-
- Find the latest version tag from https://hub.docker.com/r/ciatphdev/firebase-users-app, i.e., `v1.1.5`
- Read [**Installation - server #3**](https://github.com/ciatph/firebase-users-admin#server) for more information.
29
29
- Replace the variables accordingly in the `.env` file. Set `ALLOW_CORS=0` to allow `Same Origin` requests. Read [**Option #2 - Client and Server Bundled in (1) Image and Service**](https://github.com/ciatph/firebase-users-admin#option-2---client-and-server-bundled-in-1-image-and-service) for more information.
@@ -40,7 +40,7 @@ The server also serves a pre-built [`client`](https://github.com/ciatph/firebase
40
40
docker run -it --rm \
41
41
--env-file .env
42
42
-p 3001:3001 \
43
-
ciatphdev/firebase-users-admin-app:v1.1.5
43
+
ciatphdev/firebase-users-admin-app:v1.1.6
44
44
```
45
45
4. Run a script in the container to create the default `[email protected]` account, if it does not yet exist in the Firestore database.
46
46
`docker exec -it firebase-users-admin-app npm run seed`
0 commit comments