Lalabase
Tickets, Doku, Zeiterfassung und Kundengespräche an einem Ort, durchsuchbar per KI. Für Softwarefirmen mit Kundenprojekten. Open Source: auf deinem eigenen Server oder in unserer Cloud in Deutschland.
翻譯準備中
尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證正在載入完整 README。 以下為已儲存的摘錄。
A car-rental fleet business dashboard: cars, bookings, earnings, expenses, P&L
reports, invoices/agreements (PDF), and alerts. React frontend, Express + JWT
backend, PostgreSQL database.
Stack
• Frontend: React 18 (Vite), jspdf. Auth via JWT stored in localStorage.
• Backend: Express 5, pg, JWT (jsonwebtoken), bcryptjs.
• Database: PostgreSQL.
Prerequisites
• Node.js 18+
• PostgreSQL installed and running locally
The schema creates the users, cars, bookings, earnings, expenses
tables and seeds 8 demo cars.
(npm run db:init re-runs the schema against the fleetopz database.)檢視完整 README ↗A car-rental fleet business dashboard: cars, bookings, earnings, expenses, P&L reports, invoices/agreements (PDF), and alerts. React frontend, Express + JWT backend, PostgreSQL database.
createdb fleetopz
psql -U postgres -d fleetopz -f backend/src/config/schema.sql
The schema creates the users, cars, bookings, earnings, expenses
tables and seeds 8 demo cars.
cd backend
cp .env.example .env # then edit DB credentials + JWT_SECRET
npm install
npm run dev # http://localhost:5000
(npm run db:init re-runs the schema against the fleetopz database.)
cd frontend
npm install
npm run dev # http://localhost:5173
Open the app, click Create one on the login screen to register the first admin account, and sign in. The seeded demo cars appear under Fleet.
All routes are under /api. Everything except register/login requires an
Authorization: Bearer <token> header.
| Method | Route | Auth | Notes |
|---|---|---|---|
| POST | /auth/register | — | name, email, password → returns { token, user } |
| POST | /auth/login | — | email, password → returns { token, user } |
| GET | /auth/me | token | current user |
| GET/POST | /fleet | token | list / create cars (id = plate) |
| PUT/DELETE | /fleet/:plate | token | update / delete a car |
| GET/POST | /bookings | token | list / create bookings (id = BK-xxx) |
| PUT/DELETE | /bookings/:id | token | update / delete |
| GET/POST | /earnings | token | list / create earnings (id = ER-xxx) |
| PUT/DELETE | /earnings/:id | token | update / delete |
| GET/POST | /expenses | token | list / create expenses (id = EX-xxx) |
| PUT/DELETE | /expenses/:id | token | update / delete |
UI action → data hook → HTTP → route → middleware → controller → model → DB, and the response returns along the same path.
frontend/src/*.jsx (Fleet, Booking, Earning, Expenses screens)
│ call add/update/delete from…
frontend/src/useFleetData.js (the single data hook — the whole app's data lives here)
│ via frontend/src/services/api.js (attaches JWT, calls fetch)
▼ HTTP (e.g. POST /api/fleet)
backend/src/routes/*Routes.js maps URL+method → controller
backend/src/middleware/auth.js verifies the JWT (protected routes)
backend/src/controllers/*.js validates input, calls the model
backend/src/models/*.js the ONLY layer that runs SQL
backend/src/config/db.js PostgreSQL connection pool
▼
PostgreSQL (cars / bookings / earnings / expenses / users)
Auth is handled by frontend/src/context/AuthContext.jsx + Login.jsx, gated
in frontend/src/main.jsx (shows Login until a valid session exists).
useFleetData.js; the backend is a
straightforward CRUD + auth API. Record IDs are generated on the frontend and
stored as-is by the backend.