Sunrin Internet High School Lunch Service API (Elysia + Bun + Prisma 7)
- Bun 1.3+
- PostgreSQL
- Redis
git clone https://github.com/sunrin-today/api
cd api
cp .env.example .env
bun install
bun run db:generatebun run devbun run db:migrate # local
bun run db:deploy # production
bun run db:studioMeal reads are cached in Redis with short TTLs (today ≤15m, aggregates 5m, past ≤6h).
Writes bump a cache version so old keys expire naturally — every key always has a TTL.
docker build . -t ghcr.io/sunrin-today/api
docker run --env-file .env -p 3000:3000 ghcr.io/sunrin-today/api- Clone this repository.
- Create a new branch.
- Commit your code and push those commits to your own repository.
- Create a pull request.
