Files
logaritmisk 869a2c6e50 docs(dev): Running locally + tests README; add Meilisearch to compose; env defaults
Single docker compose (Postgres + Meilisearch) for dev and tests. .env.example
now works out-of-the-box (SESSION_COOKIE_SECURE=false for http://localhost login;
MEILI_* matching compose).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-04 14:52:34 +02:00

23 lines
957 B
Bash

# Copy to .env for local development: cp .env.example .env
# These defaults match the services in docker-compose.yml.
# PostgreSQL connection string (used for local dev and the test suite).
# The role must be allowed to CREATE DATABASE (sqlx::test provisions temp DBs).
DATABASE_URL=postgres://postgres:postgres@localhost:5432/cms_dev
# HTTP bind address.
BIND_ADDR=0.0.0.0:8080
# User-facing product name (OpenAPI title, page title). Set the real name at deploy time.
APP_NAME=Collection Management System
# Local development is plain HTTP. Browsers drop `Secure` cookies on http://localhost,
# so the session cookie must NOT be Secure-only or login will silently fail. Set this
# back to `true` (the default) for any HTTPS deployment.
SESSION_COOKIE_SECURE=false
# Meilisearch (matches docker-compose.yml). Both must be set to enable search;
# leave them unset to run with search disabled.
MEILI_URL=http://localhost:7700
MEILI_MASTER_KEY=masterKey