尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证正在加载完整 README。 以下为已保存的摘录。
A news budget management tool for tracking editorial stories and videos across daily, enterprise, edition, and shelved views with drag-and-drop scheduling.
• Next.js 16 (App Router, Turbopack) + React 19
• Prisma 5 + PostgreSQL (tested on Neon)
• next-auth v4 — credentials + Azure AD SSO auth with role support
• SWR for client-side data fetching
• @dnd-kit for drag-and-drop
• shadcn/ui + Tailwind 4
Fill in .env with your PostgreSQL connection string and a NextAuth secret:
The seed creates 9 demo user accounts. All use the password newsbudget2026:查看完整 README ↗A news budget management tool for tracking editorial stories and videos across daily, enterprise, edition, and shelved views with drag-and-drop scheduling.
npm install
cp .env.example .env
Fill in .env with your PostgreSQL connection string and a NextAuth secret:
DATABASE_URL="postgresql://..."
NEXTAUTH_URL="http://localhost:3000"
NEXTAUTH_SECRET="$(openssl rand -hex 32)"
npx prisma migrate dev
npx prisma db seed
The seed creates 9 demo user accounts. All use the password newsbudget2026:
| Role | |
|---|---|
| [email protected] | Admin |
| [email protected] | Admin |
| [email protected] | Editor |
| [email protected] | Editor |
| [email protected] | Editor |
| [email protected] | Editor |
| [email protected] | Editor |
| [email protected] | Editor |
| [email protected] | Editor |
These are demo credentials. Change them or replace the seed before any real deployment.
npm run dev
Open http://localhost:3000 and log in with any seed account.
npm run dev # Dev server at http://localhost:3000
npm run build # Production build
npm run lint # ESLint
npx prisma studio # Database browser UI
npx prisma db seed # Re-seed (clears all data)
npx prisma migrate dev # Apply schema changes
The app supports Microsoft Entra ID (Azure AD) single sign-on alongside email/password login. When configured, a "Sign in with Microsoft" button appears on the login page.
SSO users are auto-provisioned as PRODUCER if they belong to a configured Azure AD security group. Admins can promote roles via /admin/users. Pre-provisioned users (created by an admin with a matching email) are matched automatically on first SSO sign-in.
To enable, set four additional environment variables:
AZURE_AD_CLIENT_ID=...
AZURE_AD_CLIENT_SECRET=...
AZURE_AD_TENANT_ID=...
AZURE_AD_ALLOWED_GROUP_ID=...
See docs/azure-sso-setup.md for full Azure Portal setup instructions.
Set the environment variables (DATABASE_URL, NEXTAUTH_URL, NEXTAUTH_SECRET, plus Azure AD vars if using SSO) in your Vercel project settings, then deploy.
Vercel automatically runs the vercel-build script (scripts/vercel-build-db-sync.js) instead of the normal build script. On preview deployments (VERCEL_ENV=preview) it runs prisma db push --accept-data-loss before next build, so the preview database's schema stays in sync with prisma/schema.prisma automatically. It intentionally does not do this for production builds — production schema changes are applied deliberately (see below).
See docs/aws-vps-deployment.md for a full guide covering EC2 setup, Nginx, SSL, PM2, and deploy scripts.