Skip to content

Commit

Permalink
[TM-1271] Add a note about setting up local testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
roguenet committed Sep 16, 2024
1 parent cc9290b commit 8eb257d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,7 @@ schema:
This codebase connects to the database running in the `wri-terramatch-api` docker container. The docker-compose
file included in this repo is used only for setting up the database needed for running unit tests in Github Actions.

To set up the local testing database, run these two commands in the `wri-terramatch-api` directory with the docker container running:
* `echo "grant all on terramatch_microservices_test to 'wri'@'%';" | dc exec -T mariadb mysql -h localhost -u root -proot `
* `echo "grant all on terramatch_microservices_test.* to 'wri'@'%';" | dc exec -T mariadb mysql -h localhost -u root -proot`

0 comments on commit 8eb257d

Please sign in to comment.