尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证制作者的介绍仅有上面的一句话。 更多详情请阅读仓库 README。 仓库 README ↗
正在加载完整 README。
查看完整 README ↗SARP PM is a Next.js project management and cost-control app for construction and waterproofing projects. It tracks project master data, product and employee master lists, daily product/labour/expense costs, monthly invoices, profitability, and monthly project reports.
npm install
cp .env.example .env
npx prisma migrate dev --name init
npm run prisma:seed
npm run dev
Open http://localhost:3000.
Default seeded login:
[email protected]ChangeMe123!Change this before using the app with real staff. You can also set ADMIN_EMAIL, ADMIN_PASSWORD, and ADMIN_NAME before running the seed.
The app now requires login. An admin can open the Users page and create accounts for employees, managers, and other admins.
Current role structure:
ADMIN: can manage user accounts.MANAGER: can use the app, with permissions ready to be tightened later.EMPLOYEE: can use the app, with permissions ready to be tightened later.SQLite is useful for local development, but the online app must use a hosted database so employee edits are saved permanently. This repo includes two Prisma schemas:
prisma/schema.prisma: local SQLite development.prisma/schema.postgres.prisma: online Postgres deployment.Recommended hosting setup:
DATABASE_URL="postgresql://..."
ADMIN_NAME="Your Name"
ADMIN_EMAIL="[email protected]"
ADMIN_PASSWORD="use-a-strong-password"
npm run vercel-build
The vercel-build script generates Prisma Client from the Postgres schema, pushes the schema to the hosted database, and builds the Next.js app.
DATABASE_URL temporarily to the hosted Postgres URL:npm run prisma:pg:seed
Important: the seed command clears and recreates starter data. Use it only when setting up a new empty production database.
After deployment, open the Vercel URL, sign in with the admin email/password, and create staff accounts from the Users page.
For day-to-day local work, keep using the normal SQLite commands:
npm run build
npm run dev