3 The Web UI code and configuration is in the repository directory [ui/web](./../../ui/web/). Commands execution is relative to that directory.
11 corepack prepare pnpm@latest --activate
17 #### Simulator UI Server Configuration
19 The simulator UI server must be enabled, use WebSocket transport type and have authentication disabled. The simulator main configuration file should have a `uiServer` section like this:
27 "type": "protocol-basic-auth",
34 See [here](./../../README.md#charging-stations-simulator-configuration) for more details.
36 #### Web UI configuration
38 Copy the configuration template [src/assets/config-template.json](./src/assets/config-template.json) to `public/config.json`.
40 ##### Unique UI server:
51 "type": "protocol-basic-auth",
59 ##### Multiple UI servers:
65 "host": "server1.domain.tld",
71 "type": "protocol-basic-auth",
78 "host": "serverN.domain.tld",
84 "type": "protocol-basic-auth",
95 #### Compiles for production and preview locally
103 You can now follow the link displayed in the terminal. The Web UI looks like the following:
105 ![webui](./src/assets/webui.png)
107 1. With the buttons on the top you can change UI server, start/stop the simulator, add new charging stations and refresh the content.
108 2. Each charging station is a row in the table with specific 'Actions' to execute on. Try 'Stop Charging Station' and refresh with the large blue button and see the status 'Started' turns from 'Yes' into 'No'.
112 #### Compiles and run for development
124 #### Lints and fixes files