"Add Windows installer and driver training rewards"
This commit is contained in:
44
README.md
44
README.md
@@ -168,6 +168,21 @@ Recommended deployment:
|
||||
- `SV`
|
||||
- `EN`
|
||||
|
||||
## Training And Rewards
|
||||
|
||||
The `Training` menu provides a non-race progression view for registered drivers:
|
||||
|
||||
- lifetime valid laps calculated from stored session results
|
||||
- number of recorded sessions, personal best, and recent consistency spread
|
||||
- a 20-minute recommendation split into maximum-focus and controlled 80-90% blocks
|
||||
- custom lap milestones with quick targets at `500`, `1000`, and `1500` laps
|
||||
- optional reward text and a delivered/redeemed state
|
||||
- responsive layout for opening the same server from a phone on the local network
|
||||
|
||||
Direct mobile/bookmark link: `http://<server-ip>:8081/?view=training`. Selecting a driver adds its ID to the URL so that driver's page can be bookmarked.
|
||||
|
||||
Training statistics currently include only valid laps linked to a registered driver. Anonymous Open Practice transponders are intentionally excluded until they are assigned to a driver.
|
||||
|
||||
|
||||
## Create Race Wizard
|
||||
- `Race Setup` now starts with a four-step wizard for new races:
|
||||
@@ -311,20 +326,14 @@ Example:
|
||||
- supports `Undo latest` and per-log-row undo for multiple recent manual actions
|
||||
|
||||
## Windows installation
|
||||
Run in PowerShell in the project directory.
|
||||
Use 64-bit Windows 11 and Node.js 22 or 24 LTS. The easiest supported setup is:
|
||||
|
||||
1. Install Node.js LTS (18+).
|
||||
2. Install dependencies:
|
||||
```powershell
|
||||
npm install
|
||||
```
|
||||
3. Start the server in the background:
|
||||
```powershell
|
||||
npm start
|
||||
```
|
||||
4. Open:
|
||||
- `http://localhost:8081`
|
||||
- or from another computer: `http://<server-ip>:8081`
|
||||
1. Clone or extract the complete repository, preferably to `C:\\Live_RC`.
|
||||
2. Double-click `windows\\install.bat`.
|
||||
3. Start with `windows\\start_backend.bat` or `npm start`.
|
||||
4. Open `http://localhost:8081`.
|
||||
|
||||
The setup script can install Node.js LTS through `winget`, runs locked dependency installation with `npm ci`, verifies SQLite/Express, and checks the bundled AMMC runtime. Full instructions and troubleshooting: [`windows/README.md`](windows/README.md).
|
||||
|
||||
Common commands:
|
||||
```powershell
|
||||
@@ -343,10 +352,15 @@ npm run start:fg
|
||||
|
||||
### Windows scripts
|
||||
The `windows/` folder includes:
|
||||
- `windows\\install.bat` installs and verifies Node/npm dependencies
|
||||
- `windows\\start_ammc.bat` starts AMMC in the background
|
||||
- `windows\\start_backend.bat` starts `npm start` in the background (log: `logs\\backend.log`)
|
||||
- `windows\\start_backend.bat` starts `npm start` in the background
|
||||
- `windows\\start_all.bat` starts both AMMC + backend and opens the web page
|
||||
- `windows\\stop_all.bat` stops the backend on port `8081` and `ammc-amb.exe`
|
||||
- `windows\\stop_all.bat` stops the managed backend and `ammc-amb.exe`
|
||||
|
||||
Backend logs:
|
||||
- `logs\\server.out.log`
|
||||
- `logs\\server.err.log`
|
||||
|
||||
SQLite database file:
|
||||
- `data\\rc_timing.sqlite`
|
||||
|
||||
Reference in New Issue
Block a user