Build HTMX server app

This commit is contained in:
sas.fajri
2026-04-13 14:53:20 +07:00
parent a631331e94
commit d34d70ef2e
4 changed files with 2865 additions and 0 deletions

34
README.md Normal file
View File

@@ -0,0 +1,34 @@
# DocLink Web
Server-rendered rebuild of the DocLink web app, following the structure in `project-specs/`.
## Stack
- Node.js HTTP server
- HTMX for partial updates
- Custom responsive CSS
- Upstream API adapter for auth, order, result, FPP, password change, and special message flows
## Run
```bash
npm start
```
Open:
```text
http://localhost:5173
```
## Notes
- Login calls the upstream API from `project-specs/API_ENDPOINTS.md`.
- If the upstream login rejects the credentials or is unavailable, demo mode creates a local session so the UI can still be exercised.
- Order search, order detail helpers, FPP loading, password change, and special message save are wired through the API adapter with mock fallback for local preview.
## Main Files
- `server.js`
- `styles.css`
- `package.json`