VDEMS LOCAL MASTER SERVER v2.0
================================

PURPOSE
Self-contained local document server for the VDEMS web application.

CLIENT REQUIREMENTS
- Windows 10/11 64-bit
- No separate Node.js installation
- No separate npm installation
- No certificate installation on other computers
- No CMD window remains open during normal use

INSTALLATION
1. Copy/extract this complete folder on the Master Computer.
2. Right-click SETUP-VDEMS-MASTER-SERVER.cmd and Run as administrator.
3. Windows installs the server under:
   C:\ProgramData\VDEMS\MasterServer
4. The server starts automatically at Windows startup in the background.
5. Use CHECK-SERVER-STATUS.cmd when troubleshooting.

IMPORTANT BROWSER NOTE
The new v2 server uses a private-network HTTP endpoint instead of a self-signed
HTTPS certificate. Current Chrome Local Network Access can permit a secure public
website to access a private IP HTTP endpoint, but Chrome may show a one-time
"local network access" permission prompt. The user must Allow that permission.

VDEMS WEBSITE SETTING
Use:
http://MASTER-PC-IP:3000

Example:
http://192.168.29.220:3000

PRESERVED API
GET    /api/health
POST   /api/documents/upload
GET    /files/:vehicleDocumentId/:storedFileName
GET    /api/documents/download/:vehicleDocumentId/:storedFileName
DELETE /api/documents/:vehicleDocumentId/:storedFileName

STORAGE
Documents are stored under:
C:\ProgramData\VDEMS\MasterServer\app\documents

UPGRADE SAFETY
The installer preserves the existing v2 documents folder and server config when
the setup is run again.

FIRST SETUP INTERNET REQUIREMENT
The current v2 setup automatically prepares its own private runtime and server
components during first installation. The customer does not install Node.js or
npm as separate Windows applications. Internet access is required during this
first setup. After setup, normal VDEMS Local Master Server operation is local
and does not need Node/npm installation.
