Skip to content

Commit 95c4fca

Browse files
authored
docs: update Firebase initialize users instructions (#327)
1 parent 265e126 commit 95c4fca

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/development/local-dev-setup.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,11 @@ The components most frequently being worked on are the user and clinical staff f
3535
Therefore, the following instructions focus on these components.
3636
The other components are considered optional.
3737

38-
!!! tip "Clone repositories using the GitLab CLI"
38+
!!! tip "Clone repositories using the GitHub CLI"
3939

40-
Instead of cloning repositories "manually" by copying their git URL from the project page and cloning it via `git clone` it is also possible to use the [GitLab CLI](https://docs.gitlab.com/ee/editor_extensions/gitlab_cli/) to do so.
40+
Instead of cloning repositories "manually" by copying their git URL from the project page and cloning it via `git clone` it is also possible to use the [GitHub CLI](https://cli.github.com/) to do so.
4141

42-
The CLI provides the [`repo clone`](https://gitlab.com/gitlab-org/cli/-/blob/main/docs/source/repo/clone.md) command to clone repositories.
43-
Note that if you clone all repositories of a group you will clone more repositories than you actually need.
42+
The CLI provides the [`repo clone`](https://cli.github.com/manual/gh_repo_clone) command to clone repositories.
4443

4544
### Set up your own Firebase project
4645

@@ -147,13 +146,14 @@ python manage.py changepassword admin
147146

148147
Follow the instructions outlined in the [listener README](https://github.com/opalmedapps/opal-listener/blob/main/README.md) to set it up.
149148

150-
Once the listener is running, initialize the test users in Firebase with the [initialize_users script](https://github.com/opalmedapps/opal-listener/blob/main/src/firebase/initialize_users.js):
149+
Once the listener is running, initialize the test users in Firebase with the [initialize_users script](https://github.com/opalmedapps/opal-admin/blob/main/opal/core/management/commands/files/initialize_firebase_users.js):
151150

152151
```shell
153-
docker compose exec app node src/firebase/initialize_users.js
152+
curl --silent --show-error --fail --location https://raw.githubusercontent.com/opalmedapps/opal-admin/main/opal/core/management/commands/files/initialize_firebase_users.js | docker compose exec --no-TTY app node
154153
```
155154

156155
The script creates several test users all with the same password (see the script).
156+
You can also pass `--delete-all-users` to the script to delete all users (not just the users listed in the script) in the Firebase project.
157157

158158
### Set up legacy OpalAdmin
159159

0 commit comments

Comments
 (0)