Download Makefile from sumandas/ostra: direct link, hf CLI and curl.
- Browser
- Download file 1.13 kB
-
https://huggingface.co/spaces/sumandas/ostra/resolve/main/Makefile
- Command line
-
hf download hf://spaces/sumandas/ostra/Makefile
-
curl -L -o Makefile https://huggingface.co/spaces/sumandas/ostra/resolve/main/Makefile
1.13 kB
| .PHONY: setup backend frontend dev test build deploy | |
| setup: | |
| cd backend && uv sync | |
| cd frontend && pnpm install | |
| backend: | |
| cd backend && uv run uvicorn app.main:app --reload --host 127.0.0.1 --port 8000 | |
| frontend: | |
| cd frontend && pnpm dev --port 5173 | |
| dev: | |
| @echo "Starting Ostra backend (:8000) and frontend (:5173)..." | |
| @(cd backend && uv run uvicorn app.main:app --reload --host 127.0.0.1 --port 8000) & \ | |
| (cd frontend && pnpm dev --port 5173) & \ | |
| wait | |
| test: | |
| cd backend && uv run pytest -v | |
| cd frontend && pnpm tsc --noEmit && pnpm build | |
| build: | |
| cd frontend && pnpm build | |
| deploy: | |
| hf upload sumandas/ostra . . --repo-type space \ | |
| --commit-message "$(or $(MSG),Update Ostra Space)" \ | |
| --delete="*" \ | |
| --exclude=".git/**" \ | |
| --exclude=".git" \ | |
| --exclude=".ostra/**" \ | |
| --exclude=".pnpm-store/**" \ | |
| --exclude="backend/.venv/**" \ | |
| --exclude="backend/.pytest_cache/**" \ | |
| --exclude="**/*.egg-info/**" \ | |
| --exclude="**/__pycache__/**" \ | |
| --exclude="**/*.pyc" \ | |
| --exclude="frontend/node_modules/**" \ | |
| --exclude="frontend/dist/**" \ | |
| --exclude="frontend/tsconfig.tsbuildinfo" \ | |
| --exclude="**/.DS_Store" | |