-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
7238da8
commit 5c2ba73
Showing
1 changed file
with
16 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,26 @@ | ||
.PHONY: help | ||
help: ## Show this help. | ||
@uv run python -c "import re; \ | ||
[[print(f'\033[36m{m[0]:<20}\033[0m {m[1]}') for m in re.findall(r'^([a-zA-Z_-]+):.*?## (.*)$$', open(makefile).read(), re.M)] for makefile in ('$(MAKEFILE_LIST)').strip().split()]" | ||
|
||
DOCKER_COMPOSE_DEV=docker compose -f docker-compose.yml -f docker-compose.override.yml | ||
|
||
.PHONY: dev | ||
dev: ## Start up all containers for development. | ||
${DOCKER_COMPOSE_DEV} up | ||
|
||
.PHONY: frontend-dev | ||
frontend-dev: ## Start the frontend dev server. | ||
cd frontend && npm run dev | ||
|
||
.PHONY: api-dev | ||
api-dev: | ||
api-dev: ## Start the backend alone using Docker Compose. | ||
${DOCKER_COMPOSE_DEV} up backend | ||
|
||
.PHONY: local-api | ||
local-api: | ||
local-api: ## Run the FastAPI backend directly. | ||
cd backend && make local-api | ||
|
||
.PHONY: dev | ||
dev: | ||
${DOCKER_COMPOSE_DEV} up | ||
|
||
.PHONY: build-dev | ||
build-dev: | ||
build-dev: ## Build containers for development. | ||
${DOCKER_COMPOSE_DEV} build | ||
|
||
.PHONY: frontend-dev | ||
frontend-dev: | ||
cd frontend && npm run dev |