尚未检测到更新。GitHub 发布版本后会显示在这里。
制作者的介绍仅有上面的一句话。 更多详情请阅读仓库 README。 仓库 README ↗
正在加载完整 README。
查看完整 README ↗Next.js App Router platform for routing leftover food from donors to nearby NGOs with realtime tracking and milestone confirmations.
DONOR, NGO, VOLUNTEER) with next-auth credentials providernext-auth)npx)Copy .env.example to .env and set values:
cp .env.example .env
Required:
POSTGRES_PRISMA_URLPOSTGRES_URL_NON_POOLINGNEXTAUTH_URLNEXTAUTH_SECRETPICKUP_OTP_SECRETABLY_API_KEY (server-only; never use a NEXT_PUBLIC_ prefix)Optional fallback:
DATABASE_URL (for local/non-Vercel databases)Install dependencies and run:
npm install
npm run db:generate
npm run dev
There is no separate worker. After each authenticated API request, the server
expires stale volunteer offers, reassigns them, and publishes pending Ably events
(lib/background-sync.ts).
npm run db:migrate
For production:
npm run db:deploy
.env.example in the Vercel project settings:
POSTGRES_PRISMA_URLPOSTGRES_URL_NON_POOLINGDATABASE_URL (optional fallback)NEXTAUTH_URL (set this to your production domain)NEXTAUTH_SECRETPICKUP_OTP_SECRETABLY_API_KEYnpm run build).npm run db:deploy
If you want a single command that includes migrations + build in non-Vercel environments, run:
npm run build:prod
npm run lint
npm run build