尚未偵測到更新。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