3 The Web UI code and configuration is in the repository directory [ui/web](./../../ui/web/). Commands execution is relative to that directory.
7 - [Project setup](#project-setup)
8 - [Configuration](#configuration)
9 - [Simulator UI Server Configuration](#simulator-ui-server-configuration)
10 - [Web UI configuration](#web-ui-configuration)
11 - [Unique UI server](#unique-ui-server)
12 - [Multiple UI servers](#multiple-ui-servers)
14 - [Compiles and run for production](#compiles-and-run-for-production)
15 - [Preview locally](#preview-locally)
16 - [Development](#development)
17 - [Compiles and run for development](#compiles-and-run-for-development)
18 - [Formats files](#formats-files)
19 - [Lints and fixes files](#lints-and-fixes-files)
25 #### Simulator UI Server Configuration
27 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:
35 "type": "protocol-basic-auth",
42 See [here](./../../README.md#charging-stations-simulator-configuration) for more details.
44 #### Web UI configuration
46 Copy the configuration template [src/assets/config-template.json](./src/assets/config-template.json) to `public/config.json`.
48 ##### Unique UI server
59 "type": "protocol-basic-auth",
67 ##### Multiple UI servers
73 "host": "server1.domain.tld",
79 "type": "protocol-basic-auth",
86 "host": "serverN.domain.tld",
92 "type": "protocol-basic-auth",
103 #### Compiles and run for production
111 You can now follow the link displayed in the terminal. The Web UI looks like the following:
113 ![webui](./src/assets/webui.png)
115 1. With the buttons on the top you can change UI server, start/stop the simulator, add new charging stations and refresh the content.
116 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'.
120 #### Compiles and run for development
132 #### Lints and fixes files