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)
20 - [Development](#development)
21 - [Compiles and run for development](#compiles-and-run-for-development)
22 - [Formats files](#formats-files)
23 - [Lints and fixes files](#lints-and-fixes-files)
29 #### Simulator UI Server Configuration
31 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:
39 "type": "protocol-basic-auth",
46 See [here](./../../README.md#charging-stations-simulator-configuration) for more details.
48 #### Web UI configuration
50 Copy the configuration template [src/assets/config-template.json](./src/assets/config-template.json) to `public/config.json`.
52 ##### Unique UI server
63 "type": "protocol-basic-auth",
71 ##### Multiple UI servers
77 "host": "server1.domain.tld",
83 "type": "protocol-basic-auth",
90 "host": "serverN.domain.tld",
96 "type": "protocol-basic-auth",
107 #### Compiles and run for production
115 You can now follow the link displayed in the terminal. The Web UI looks like the following:
117 ![webui](./src/assets/webui.png)
119 1. With the buttons on the top you can change UI server, start/stop the simulator, add new charging stations and refresh the content.
120 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'.
124 #### Compiles and run for development
136 #### Lints and fixes files