Add start and stop launcher scripts

This commit is contained in:
sas.fajri
2026-04-13 19:32:42 +07:00
parent 0ed36b98af
commit 3ef5d72d4d
3 changed files with 66 additions and 0 deletions

View File

@@ -21,14 +21,33 @@ Open:
http://localhost:5173
```
## Click To Run
If you want a one-click launcher on macOS/Linux:
```bash
./start.sh
```
Stop the background server with:
```bash
./stop.sh
```
If you run the server in the foreground, stop it with `Ctrl+C`.
## 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.
- `start.sh` writes a pid file named `.doclink-web.pid` and a log file named `doclink-web.log`.
## Main Files
- `server.js`
- `styles.css`
- `package.json`
- `start.sh`
- `stop.sh`