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
- Read [**Installation - server #3**](#server) for more information.
242
241
- 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.
@@ -245,15 +244,15 @@ The server also serves the pre-built `client` website from a static directory us
- Read more about the localhost environment set-up instructions on [firebase-auth-users](https://github.com/ciatph/firebase-users-admin)
16
+
- Read more about the localhost environment set-up instructions on [firebase-admin-users](https://github.com/ciatph/firebase-users-admin)
17
17
18
18
### Docker
19
19
20
20
firebase-users-admin's server component, hosting all the listed endpoints below is available as a stand-alone [docker image](https://hub.docker.com/r/ciatphdev/firebase-users-admin-server) on Docker Hub with customizable environment variables (.env file).
21
21
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
-
1. Pull the (production) **/server**[docker image](https://hub.docker.com/repository/docker/ciatphdev/firebase-users-admin-server) from Docker Hub.
- Read [**Installation - server #3**](https://github.com/ciatph/firebase-users-admin#server) for more information.
28
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.
29
30
```
@@ -39,21 +40,47 @@ The server also serves a pre-built [`client`](https://github.com/ciatph/firebase
39
40
docker run -it --rm \
40
41
--env-file .env
41
42
-p 3001:3001 \
42
-
ciatphdev/firebase-users-admin-app:v1.1.2
43
+
ciatphdev/firebase-users-admin-app:v1.1.5
43
44
```
44
-
4. Run a script in the container to create the default `[email protected]` account, if it does not yet exist in the Firestore database.
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.
45
46
`docker exec -it firebase-users-admin-app npm run seed`
46
-
5. Launch the server API documentation on
47
+
5. Launch the server API documentation on
47
48
`http://localhost:3001/docs`
48
49
6. Launch the client website on `http://localhost:3001`.
49
-
- Login using the superadmin account create on step # 4.
50
+
- Login using the superadmin account create on step # 4.
0 commit comments