2018-10-17 17:24:04 +03:00
# Traefik Web UI
2015-10-07 14:54:00 +03:00
2018-10-17 17:24:04 +03:00
Access to Traefik Web UI, ex: http://localhost:8080
2015-10-07 14:54:00 +03:00
## Interface
2020-04-08 19:54:03 +03:00
Traefik Web UI provide 2 types of information:
2019-02-05 20:18:04 +03:00
2015-10-07 14:54:00 +03:00
- Providers with their backends and frontends information.
- Health of the web server.
2019-05-17 14:40:04 +03:00
## How to build (for backend developer)
2016-01-21 00:45:51 +03:00
Use the make file :
```shell
2022-02-18 17:44:08 +03:00
make build-image # Generate Docker image.
make clean-webui generate-webui # Generate static contents in `webui/static/` folder.
2016-01-21 00:45:51 +03:00
```
2015-10-07 14:54:00 +03:00
2019-05-17 14:40:04 +03:00
## How to build (only for frontend developer)
2015-10-07 14:54:00 +03:00
2024-06-07 17:56:04 +03:00
- prerequisite: [Node 20.14+ ](https://nodejs.org ) [Yarn 1.22.22 ](https://yarnpkg.com/ )
2017-05-05 19:13:30 +03:00
2022-02-18 17:44:08 +03:00
- Go to the `webui/` directory
2015-12-22 03:02:59 +03:00
2015-12-23 01:33:12 +03:00
- To install dependencies, execute the following commands:
2019-02-05 20:18:04 +03:00
2022-03-03 20:08:07 +03:00
- `yarn install`
2015-12-22 03:02:59 +03:00
2015-12-23 01:33:12 +03:00
- Build static Web UI, execute the following command:
2019-02-05 20:18:04 +03:00
2022-03-03 20:08:07 +03:00
- `yarn build`
2015-12-23 01:33:12 +03:00
2022-02-18 17:44:08 +03:00
- Static contents are built in the `webui/static/` directory
2015-12-23 01:33:12 +03:00
2022-02-18 17:44:08 +03:00
**Do not manually change the files in the `webui/static/` directory**
2015-12-23 01:33:12 +03:00
2021-09-15 11:36:14 +03:00
- The build allows to:
2015-12-23 01:33:12 +03:00
- optimize all JavaScript
- optimize all CSS
2022-03-03 20:08:07 +03:00
- add vendor prefixes to CSS (cross-browser support)
2015-12-23 01:33:12 +03:00
- add a hash in the file names to prevent browser cache problems
2021-09-15 11:36:14 +03:00
- optimize all images at build time
2016-07-23 20:59:54 +03:00
- bundle JavaScript in one file
2015-12-23 01:33:12 +03:00
2019-05-17 14:40:04 +03:00
## How to edit (only for frontend developer)
2015-12-23 01:33:12 +03:00
2022-02-18 17:44:08 +03:00
**Do not manually change the files in the `webui/static/` directory**
2015-12-23 01:33:12 +03:00
2022-02-18 17:44:08 +03:00
- Go to the `webui/` directory
- Edit files in `webui/src/`
2015-12-23 01:33:12 +03:00
- Run in development mode :
2022-03-03 20:08:07 +03:00
- `yarn dev`
2015-10-07 14:54:00 +03:00
## Libraries
- [Node ](https://nodejs.org )
2022-03-03 20:08:07 +03:00
- [Yarn ](https://yarnpkg.com/ )
2024-05-21 16:26:04 +03:00
- [Quasar ](https://quasar.dev/ )
2019-07-15 11:58:03 +03:00
- [Vue ](https://vuejs.org/ )
2018-04-27 14:12:04 +03:00
- [Bulma ](https://bulma.io )
2017-09-01 20:44:03 +03:00
- [D3 ](https://d3js.org )
2018-04-27 14:12:04 +03:00
- [D3 - Documentation ](https://github.com/mbostock/d3/wiki )