Download Makefile from paisaly/backend: direct link, hf CLI and curl.
- Browser
- Download file 1.47 kB
-
https://huggingface.co/spaces/paisaly/backend/resolve/main/Makefile
- Command line
-
hf download hf://spaces/paisaly/backend/Makefile
-
curl -L -o Makefile https://huggingface.co/spaces/paisaly/backend/resolve/main/Makefile
1.47 kB
| .PHONY: dev test test-unit test-integration lint format format-check docker-up docker-down openapi | |
| dev: ## Start development server | |
| uv run uvicorn app.main:app --reload --no-access-log | |
| test: ## Run all tests | |
| uv run pytest | |
| test-unit: ## Run unit tests only | |
| uv run pytest tests/unit/ | |
| test-integration: ## Run integration tests only | |
| uv run pytest tests/integration/ | |
| lint: ## Run ruff linter | |
| uv run ruff check | |
| format: ## Auto-format with ruff | |
| uv run ruff format | |
| format-check: ## Check formatting without changes (CI) | |
| uv run ruff format --check | |
| docker-up: ## Start full stack (MongoDB + Redis + app) | |
| docker-compose up -d | |
| docker-down: ## Stop full stack | |
| docker-compose down | |
| # Pinned env so the artifact is reproducible: the servers block comes from | |
| # APP_URL, and settings refuse to load without MONGODB_URI. Writing through a | |
| # temp file keeps a failed export from truncating the committed spec. | |
| openapi: ## Export OpenAPI spec to openapi.json | |
| MONGODB_URI="mongodb://localhost:27017/" APP_URL="https://spoo.me" \ | |
| uv run python -c \ | |
| "from app.factory import create_app; import json; app = create_app(); \ | |
| print(json.dumps(app.openapi(), indent=2))" > openapi.json.tmp | |
| mv openapi.json.tmp openapi.json | |
| docs: ## Open API docs in browser (requires running server) | |
| open http://localhost:8000/docs | |