Skip to content

Use docker compose to run database in development#81

Open
SidneyNemzer wants to merge 2 commits intoBuildTheEarth:api/v2from
SidneyNemzer:api-v2/db-dev
Open

Use docker compose to run database in development#81
SidneyNemzer wants to merge 2 commits intoBuildTheEarth:api/v2from
SidneyNemzer:api-v2/db-dev

Conversation

@SidneyNemzer
Copy link
Contributor

This change allows developers to run yarn dev and, 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.

This change allows developers to run `yarn dev` and, assuming docker is installed, the database will start before running the api servers
@Nudelsuppe42
Copy link
Contributor

Theoretically you dont need the individual scope#script scripts as turbo will automatically only run the script in projects where the script exists (eg. db:migrate only exists in @repo/db)

@SidneyNemzer
Copy link
Contributor Author

@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.

@Nudelsuppe42
Copy link
Contributor

What about putting frontend:dev with turbo run dev --filter=frontend... in the package.json? That way we only have the core scripts in turbo.

@SidneyNemzer
Copy link
Contributor Author

Added dev:frontend since we already have build:api and build:frontend. What do you mean by core scripts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

2 participants