-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
120 changed files
with
8,711 additions
and
6,122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
{ | ||
// See http://go.microsoft.com/fwlink/?LinkId=827846 | ||
// for the documentation about the extensions.json format | ||
"recommendations": [ | ||
"amodio.tsl-problem-matcher", | ||
"msjsdiag.debugger-for-chrome", | ||
"ms-vscode-remote.remote-containers", | ||
"editorconfig.editorconfig", | ||
"dbaeumer.vscode-eslint", | ||
"xdebug.php-pack", | ||
"svelte.svelte-vscode", | ||
"bradlc.vscode-tailwindcss" | ||
] | ||
// See http://go.microsoft.com/fwlink/?LinkId=827846 | ||
// for the documentation about the extensions.json format | ||
"recommendations": [ | ||
"amodio.tsl-problem-matcher", | ||
"msjsdiag.debugger-for-chrome", | ||
"ms-vscode-remote.remote-containers", | ||
"editorconfig.editorconfig", | ||
"dbaeumer.vscode-eslint", | ||
"xdebug.php-pack", | ||
"svelte.svelte-vscode", | ||
"bradlc.vscode-tailwindcss", | ||
"ms-playwright.playwright" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dump |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
clean: | ||
docker compose down | ||
|
||
db: | ||
docker compose up -d db | ||
|
||
dump: db | ||
docker compose exec db mongodump | ||
docker compose cp db:/dump ./dump | ||
|
||
restore: db | ||
docker compose cp ./dump db:/dump | ||
docker compose exec db mongorestore | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Creating and utilizing any test data | ||
|
||
## Create a dump | ||
|
||
1. start the app | ||
1. create all the data you want through the app | ||
1. `make dump clean` to create a `dump` folder in this directory | ||
1. `tar -cf <name-representative-of-data>.tar dump`, e.g., `tar -cf activity.tar dump`, and decide whether to commit this or not for others to use. | ||
|
||
## Load a dump | ||
|
||
1. `tar -xf <name-representative-of-data>.tar` and rename to `dump` | ||
1. `make restore clean` to load the `dump` directory | ||
|
||
# Common mongo commands | ||
|
||
> https://www.mongodb.com/docs/v4.4/mongo | ||
`mongo` within `db` container | ||
|
||
> https://www.mongodb.com/docs/manual/reference/mongo-shell/#command-helpers | ||
`show dbs` | ||
|
||
`use scriptureforge` | ||
|
||
`show collections` | ||
|
||
`exit` | ||
|
||
> https://www.mongodb.com/docs/manual/reference/mongo-shell/#queries | ||
`db.users.find()` | ||
|
||
# Test data | ||
|
||
## Activity | ||
|
||
| username | email | password | project | | ||
| -------- | ------------------- | ------------- | ----------- | | ||
| admin | admin@example.com | password | all | | ||
| johndoe | jd@example.org | languageforge | project-1 | | ||
| janedoe | janedoe@example.org | languageforge | project-2 | |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
FROM ghcr.io/sillsdev/lfmerge:2.0.123 | ||
FROM ghcr.io/sillsdev/lfmerge:2.0.131 | ||
# Do not add anything to this Dockerfile, it should stay empty |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.