7 The Web UI code and configuration is in the repository directory [ui/web](./../../ui/web/). Commands execution is relative to that directory.
11 - [Project setup](#project-setup)
12 - [Configuration](#configuration)
13 - [Simulator UI Server Configuration](#simulator-ui-server-configuration)
14 - [Web UI configuration](#web-ui-configuration)
15 - [Unique UI server](#unique-ui-server)
16 - [Multiple UI servers](#multiple-ui-servers)
18 - [Compiles and run for production](#compiles-and-run-for-production)
19 - [Preview locally](#preview-locally)
21 - [Development](#development)
22 - [Compiles and run for development](#compiles-and-run-for-development)
23 - [Formats files](#formats-files)
24 - [Lints and fixes files](#lints-and-fixes-files)
30 #### Simulator UI Server Configuration
32 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:
40 "type": "protocol-basic-auth",
47 See [here](./../../README.md#charging-stations-simulator-configuration) for more details.
49 #### Web UI configuration
51 Copy the configuration template [src/assets/config-template.json](./src/assets/config-template.json) to `public/config.json`.
53 ##### Unique UI server
64 "type": "protocol-basic-auth",
72 ##### Multiple UI servers
78 "host": "server1.domain.tld",
84 "type": "protocol-basic-auth",
91 "host": "serverN.domain.tld",
97 "type": "protocol-basic-auth",
108 #### Compiles and run for production
116 You can now follow the link displayed in the terminal. The Web UI looks like the following:
118 ![webui](./src/assets/webui.png)
120 1. With the buttons on the top you can change UI server, start/stop the simulator, add new charging stations and refresh the content.
121 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'.
125 In the [docker](./docker) folder:
133 #### Compiles and run for development
145 #### Lints and fixes files