maarcadetweet: initial commit
AT Protocol PDS + AppView + Tauri Desktop Client, 160-char post limit. - PDS (Rust + axum + sqlx) - Auth: createAccount, createSession, refreshSession - Records: createRecord, deleteRecord (race-safe via SELECT FOR UPDATE) - Feed: feed.like.create, feed.repost.create - Sync: getRepo, getBlocks, getLatestCommit, getRecord (with MST proof), listRepos - Identity: resolveHandle - MST: spec-conformant (at-mst crate, 27 tests) - Repo: signed commits, TID counter (monotonic, 4096 wrap safe) - AppView (Rust + axum + sqlx) - Jetstream consumer (WebSocket, exponential backoff, 38k+ events indexed) - REST API: timeline/home (graph-aware), profile, search, post (with thread hydration) - Handle-sync worker (did:plc + did:web) - JSONB embed storage + thread columns (migration 0003) - Like/repost counter cache (migration 0004) - Tauri 2 + Svelte 5 Desktop Client - System tray (Show/Compose/Quit menu) - OS notifications (tauri-plugin-notification) - Auto-update (tauri-plugin-updater, placeholder endpoint) - Window-state (tauri-plugin-window-state) - 160-char compose with live counter - Image/Link embed rendering - LocalStorage-persisted like state - Timeline with poll (prepend new posts) - Custom TitleBar (transparent, no decorations) - Orange/IBM Plex Mono maarcade design Tests: 231 Rust + 9 vitest = 240 passed.
This commit is contained in:
@@ -0,0 +1,76 @@
|
||||
services:
|
||||
postgres-pds:
|
||||
image: postgres:16-alpine
|
||||
container_name: maarcadetweet-pds-db
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_USER: pds
|
||||
POSTGRES_PASSWORD: pds
|
||||
POSTGRES_DB: pds
|
||||
ports:
|
||||
- "5434:5432"
|
||||
volumes:
|
||||
- pds_pg_data:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U pds -d pds"]
|
||||
interval: 5s
|
||||
timeout: 3s
|
||||
retries: 5
|
||||
|
||||
postgres-appview:
|
||||
image: postgres:16-alpine
|
||||
container_name: maarcadetweet-appview-db
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_USER: appview
|
||||
POSTGRES_PASSWORD: appview
|
||||
POSTGRES_DB: appview
|
||||
ports:
|
||||
- "5435:5432"
|
||||
volumes:
|
||||
- appview_pg_data:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U appview -d appview"]
|
||||
interval: 5s
|
||||
timeout: 3s
|
||||
retries: 5
|
||||
|
||||
minio:
|
||||
image: minio/minio:latest
|
||||
container_name: maarcadetweet-minio
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
MINIO_ROOT_USER: minioadmin
|
||||
MINIO_ROOT_PASSWORD: minioadmin
|
||||
ports:
|
||||
- "9100:9000"
|
||||
- "9101:9001"
|
||||
command: server /data --console-address ":9001"
|
||||
volumes:
|
||||
- minio_data:/data
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
|
||||
interval: 10s
|
||||
timeout: 3s
|
||||
retries: 5
|
||||
|
||||
minio-init:
|
||||
image: minio/mc:latest
|
||||
container_name: maarcadetweet-minio-init
|
||||
depends_on:
|
||||
minio:
|
||||
condition: service_healthy
|
||||
entrypoint: >
|
||||
/bin/sh -c "
|
||||
mc alias set local http://minio:9000 minioadmin minioadmin;
|
||||
mc mb -p local/maarcadetweet-pds || true;
|
||||
mc mb -p local/maarcadetweet-appview || true;
|
||||
mc anonymous set download local/maarcadetweet-pds || true;
|
||||
mc anonymous set download local/maarcadetweet-appview || true;
|
||||
exit 0;
|
||||
"
|
||||
|
||||
volumes:
|
||||
pds_pg_data:
|
||||
appview_pg_data:
|
||||
minio_data:
|
||||
Reference in New Issue
Block a user