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.
Translation pending
Manage car rentals, bookings, earnings, and invoices
Translation pending
AI summary · README
BusinessJavaScript · PLpgSQLGitHub @DeepikaSowdeOnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
No updates detected yet. GitHub releases will appear here.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Run /nomorevibe verify in your project folder to verify ownership and manage the introduction yourself.
Verify in one minuteAsk about other verification options
Loading the full README. The saved excerpt is shown below.
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.)Read the full 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.