Docs: DinD-safe quick start (compose test runner + in-network API smoke)
This commit is contained in:
parent
17759ef564
commit
7560bdb4c9
1 changed files with 17 additions and 6 deletions
23
README.md
23
README.md
|
|
@ -35,14 +35,25 @@ External comms are only possible from `approved`/`drafting` states, and only wit
|
||||||
## Quick start (POC)
|
## Quick start (POC)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cp .env.example .env # add LLM provider keys
|
cp .env.example .env # add LLM provider keys (no key = mock mode, deterministic)
|
||||||
docker compose up -d postgres
|
|
||||||
cd apps/api && uv venv .venv && . .venv/bin/activate && uv pip install -e .
|
# Backend tests + live API (DinD-safe: everything runs inside the compose network)
|
||||||
pytest # backend tests
|
docker compose run --rm api-test # 47 pytest tests
|
||||||
uvicorn app.main:app --reload
|
docker rm -f jobhunt-api-poc 2>/dev/null; \
|
||||||
cd apps/web && npm install && npm run dev
|
docker compose run -d --name jobhunt-api-poc \
|
||||||
|
--entrypoint "uvicorn app.main:app --host 0.0.0.0 --port 8000" api-test
|
||||||
|
docker exec jobhunt-api-poc curl -s localhost:8000/api/health # {"status":"ok"}
|
||||||
|
|
||||||
|
# Frontend (host): Vue dev server proxies to the API
|
||||||
|
cd apps/web && npm install && VITE_API_BASE=http://localhost:8000/api npm run dev
|
||||||
|
|
||||||
|
# Packages (host, no DB needed): artifacts + llm-gateway unit tests
|
||||||
|
cd packages/artifacts && uv venv && . .venv/bin/activate && uv pip install -e ".[dev]" && pytest -q
|
||||||
|
cd packages/llm-gateway && uv venv && . .venv/bin/activate && uv pip install -e ".[dev]" && pytest -q
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Note: in sandboxed Docker-in-Docker environments host port publishing may not work; run curl/docker exec against the `jobhunt-api-poc` container directly, as above.
|
||||||
|
|
||||||
## Status
|
## Status
|
||||||
|
|
||||||
POC scaffolding in progress. See `docs/` for the design.
|
POC scaffolding in progress. See `docs/` for the design.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue