Sign inSign up

reiizumi/fumi-api

By reiizumi

•Updated 4 days ago

Image
0

367

reiizumi/fumi-api repository overview

⁠fumi-api

REST API server for fumi — manga collection tracker. Compiled Bun binary serving a Hono HTTP API with Drizzle ORM and PostgreSQL.


⁠Prerequisites

  • Docker 24+

⁠Database Setup

Run the database migrations before starting the server:

docker run --rm \
  -e DATABASE_URL=postgres://user:password@host:5432/fumi \
  fumi-api:1.0.0 migrate

⁠Running

Start the server with the minimum required environment variables:

docker run --rm \
  -e DATABASE_URL=postgres://user:password@host:5432/fumi \
  -e OIDC_ISSUER=https://your-idp.example.com/realms/fumi \
  -e MANGADEX_CLIENT_ID=your-client-id \
  -e MANGADEX_CLIENT_SECRET=your-client-secret \
  -e MANGADEX_USERNAME=your-username \
  -e MANGADEX_PASSWORD=your-password \
  -p 3000:3000 \
  fumi-api:1.0.0

⁠Environment Variables

VariableDescriptionDefaultRequired
DATABASE_URLPostgreSQL connection string—Yes
OIDC_ISSUEROIDC issuer URL for JWT validation—Yes
MANGADEX_CLIENT_IDMangaDex OAuth2 client ID—Yes
MANGADEX_CLIENT_SECRETMangaDex OAuth2 client secret—Yes
MANGADEX_USERNAMEMangaDex account username—Yes
MANGADEX_PASSWORDMangaDex account password—Yes
PORTServer port3000No
OTEL_SERVICE_NAMEOpenTelemetry service namefumi-apiNo
OTEL_EXPORTER_OTLP_ENDPOINTOTLP collector endpoint—No
OTEL_TRACES_EXPORTERTraces exporter (otlp or none)otlpNo
OTEL_METRICS_EXPORTERMetrics exporter (otlp or none)otlpNo
OTEL_LOGS_EXPORTERLogs exporter (otlp or none)otlpNo
OTEL_TRACES_SAMPLERTrace sampler strategyparentbased_traceidratioNo
OTEL_TRACES_SAMPLER_ARGSampling ratio (0.0 - 1.0)0.1No

Moon.cat - GitLab Repository⁠

Tag summary

Content type

Image

Digest

sha256:838532469…

Size

46.9 MB

Last updated

4 days ago

docker pull reiizumi/fumi-api:2.0.1