Commit | Line | Data |
---|---|---|
32de5a57 LM |
1 | # Web UI |
2 | ||
3 | ## Project setup | |
4 | ||
d6b76da3 | 5 | ```shell |
32de5a57 LM |
6 | npm install |
7 | ``` | |
8 | ||
8228f972 JB |
9 | The simulator UI server must be enabled, use WebSocket and disable authentication. The simulator main configuration file should have a `uiServer` section like this: |
10 | ||
11 | ```json | |
12 | "uiServer": { | |
13 | "enabled": true, | |
14 | "type": "ws", | |
15 | "authentication": { | |
16 | "enabled": false, | |
17 | "type": "basic-auth", | |
18 | "username": "admin", | |
19 | "password": "admin" | |
20 | } | |
21 | }, | |
22 | ``` | |
23 | ||
24 | See [here](../README.md#charging-stations-simulator-configuration) for more details. | |
25 | ||
32de5a57 LM |
26 | ### Run |
27 | ||
28 | For both solution you can then follow the link displayed in the terminal at the end of compilation | |
29 | ||
efdd1922 | 30 | #### Compiles and run for production |
32de5a57 | 31 | |
d6b76da3 | 32 | ```shell |
32de5a57 LM |
33 | npm start |
34 | ``` | |
35 | ||
efdd1922 | 36 | #### Compiles and run for development |
32de5a57 | 37 | |
d6b76da3 | 38 | ```shell |
32de5a57 LM |
39 | npm run serve |
40 | ``` | |
41 | ||
42 | ### Compiles and minifies for production | |
43 | ||
d6b76da3 | 44 | ```shell |
32de5a57 LM |
45 | npm run build |
46 | ``` | |
47 | ||
48 | ### Lints files | |
49 | ||
d6b76da3 | 50 | ```shell |
32de5a57 LM |
51 | npm run lint |
52 | ``` |