Files
query-orchestration/docs/ai.generated/05-getting-started.md
T
Jay Brown 6dccf494f8 Merged in feature/permit-policy-cleanup (pull request #210)
cleanup permit policies and correct documentation

* docs

* policy cleanup

* refactor

* Merge remote-tracking branch 'origin/feature/permit-policy-cleanup' into feature/permit-policy-cleanup

* docs and edits
2026-02-19 20:22:59 +00:00

123 lines
1.7 KiB
Markdown

# Getting Started Guide
## Prerequisites
- Devbox
- Docker
- Go 1.24.x (provided by devbox)
- Task (`task`)
## Local Setup
```bash
git clone <repository-url>
cd query-orchestration.2
touch .env
devbox shell
```
## Verify Tooling
```bash
go version
docker --version
task --version
task --list
```
## Common Tasks
### Generate and Build
```bash
task generate
task build
```
### Full Test/Validation Suite
```bash
task fullsuite
```
### Local Compose Lifecycle
```bash
task compose:up
task compose:down
task compose:clean
```
### Linting
```bash
task lint
```
## Useful Focused Tasks
```bash
task openapi:generate
task db:generate
task db:lint
task test:functional
task test:race
```
## Key Local Ports
- `queryAPI`: `8080`
- `storeEventRunner`: `8081`
- `docInitRunner`: `8082`
- `docSyncRunner`: `8083`
- `docCleanRunner`: `8084`
- `clientSyncRunner`: `8089`
- `prometheus`: `9091`
- `postgres`: `5432`
- `localstack`: `4566`
- `permit_pdp`: `7766`
### Deprecated compatibility services (still present in compose in some environments)
- `docTextRunner`: `8085`
- `querySyncRunner`: `8087`
- `queryRunner`: `8088`
- `queryVersionSyncRunner`: `8090`
## Minimal `.env` Example
```bash
PGUSER=postgres
PGPASSWORD=password
PGDATABASE=queryorchestration
PGHOST=localhost
PGPORT=5432
DB_NOSSL=true
AWS_REGION=us-east-1
AWS_ACCESS_KEY_ID=test
AWS_SECRET_ACCESS_KEY=test
AWS_SESSION_TOKEN=test
AWS_ENDPOINT_URL=http://localhost:4566
AWS_S3_USE_PATH_STYLE=true
DISABLE_AUTH=true
LOG_LEVEL=DEBUG
BUCKET=<your-bucket-name>
```
## Troubleshooting
```bash
# Validate compose files
task compose:lint
# Check migrations/codegen
task db:generate
task openapi:generate
# Recreate local containers/volumes
task compose:clean
task compose:up
```