Use docker compose to run database in development#81
Use docker compose to run database in development#81Nudelsuppe42 merged 5 commits intoBuildTheEarth:api/v2from
Conversation
This change allows developers to run `yarn dev` and, assuming docker is installed, the database will start before running the api servers
|
Theoretically you dont need the individual |
|
@Nudelsuppe42 Ah good point. Should I remove the scopes? I will say, it's nice that the scope makes it clear the script only runs in one package. But happy to remove them. |
|
What about putting |
|
Added |
|
I meant |
|
Does this need any other changes or is it ready to merge you think? |
Nudelsuppe42
left a comment
There was a problem hiding this comment.
Also, i'd remove the changes in turbo.json. The PG stuff looks good to me
You mean the scope prefixes? Just removed them. I think I can't totally remove the scripts from turbo.json because of the dependency order (up -> wait -> migrate -> dev) |
This change allows developers to run
yarn devand, assuming docker is installed, the database will start before running the api servers.If you don't have docker, the dev scripts will fail. Let me know if you think docker is a reasonable dependency. I could make the new scripts exit early if docker is not detected.