Lalabase
티켓·문서·근무시간·고객대화를 한 곳에 모아 KI로 검색, 소프트웨어 기업 고객 프로젝트용, 오픈소스로 자체 서버·독일 클라우드에 배포
아직 감지된 업데이트가 없습니다. GitHub 릴리스가 나오면 여기에 보입니다.
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기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.