2018-10-17 16:24:04 +02:00
|
|
|
# Traefik Web UI
|
2015-10-07 13:54:00 +02:00
|
|
|
|
2018-10-17 16:24:04 +02:00
|
|
|
Access to Traefik Web UI, ex: http://localhost:8080
|
2015-10-07 13:54:00 +02:00
|
|
|
|
|
|
|
## Interface
|
|
|
|
|
2020-04-08 18:54:03 +02:00
|
|
|
Traefik Web UI provide 2 types of information:
|
2019-02-05 18:18:04 +01:00
|
|
|
|
2015-10-07 13:54:00 +02:00
|
|
|
- Providers with their backends and frontends information.
|
|
|
|
- Health of the web server.
|
|
|
|
|
2019-05-17 13:40:04 +02:00
|
|
|
## How to build (for backend developer)
|
2016-01-20 22:45:51 +01:00
|
|
|
|
|
|
|
Use the make file :
|
|
|
|
|
|
|
|
```shell
|
|
|
|
make build # Generate Docker image
|
|
|
|
make generate-webui # Generate static contents in `traefik/static/` folder.
|
|
|
|
```
|
2015-10-07 13:54:00 +02:00
|
|
|
|
2019-05-17 13:40:04 +02:00
|
|
|
## How to build (only for frontend developer)
|
2015-10-07 13:54:00 +02:00
|
|
|
|
2019-10-14 17:18:04 +02:00
|
|
|
- prerequisite: [Node 12.11+](https://nodejs.org) [Npm](https://www.npmjs.com/)
|
2017-05-05 18:13:30 +02:00
|
|
|
|
2015-12-22 23:33:12 +01:00
|
|
|
- Go to the directory `webui`
|
2015-12-22 01:02:59 +01:00
|
|
|
|
2015-12-22 23:33:12 +01:00
|
|
|
- To install dependencies, execute the following commands:
|
2019-02-05 18:18:04 +01:00
|
|
|
|
2019-08-26 18:15:41 +02:00
|
|
|
- `npm install`
|
2015-12-22 01:02:59 +01:00
|
|
|
|
2015-12-22 23:33:12 +01:00
|
|
|
- Build static Web UI, execute the following command:
|
2019-02-05 18:18:04 +01:00
|
|
|
|
2019-08-26 18:15:41 +02:00
|
|
|
- `npm run build`
|
2015-12-22 23:33:12 +01:00
|
|
|
|
|
|
|
- Static contents are build in the directory `static`
|
|
|
|
|
|
|
|
**Don't change manually the files in the directory `static`**
|
|
|
|
|
|
|
|
- The build allow to:
|
|
|
|
- optimize all JavaScript
|
|
|
|
- optimize all CSS
|
|
|
|
- add vendor prefixes to CSS (cross-bowser support)
|
|
|
|
- add a hash in the file names to prevent browser cache problems
|
|
|
|
- all images will be optimized at build
|
2016-07-23 19:59:54 +02:00
|
|
|
- bundle JavaScript in one file
|
2015-12-22 23:33:12 +01:00
|
|
|
|
2019-05-17 13:40:04 +02:00
|
|
|
## How to edit (only for frontend developer)
|
2015-12-22 23:33:12 +01:00
|
|
|
|
|
|
|
**Don't change manually the files in the directory `static`**
|
|
|
|
|
|
|
|
- Go to the directory `webui`
|
|
|
|
- Edit files in `webui/src`
|
|
|
|
- Run in development mode :
|
2019-08-26 18:15:41 +02:00
|
|
|
- `npm run dev`
|
2015-10-07 13:54:00 +02:00
|
|
|
|
|
|
|
## Libraries
|
|
|
|
|
|
|
|
- [Node](https://nodejs.org)
|
2019-08-26 18:15:41 +02:00
|
|
|
- [Npm](https://www.npmjs.com/)
|
2016-07-23 19:59:54 +02:00
|
|
|
- [Webpack](https://github.com/webpack/webpack)
|
2019-07-15 10:58:03 +02:00
|
|
|
- [Vue](https://vuejs.org/)
|
2018-04-27 13:12:04 +02:00
|
|
|
- [Bulma](https://bulma.io)
|
2017-09-01 19:44:03 +02:00
|
|
|
- [D3](https://d3js.org)
|
2018-04-27 13:12:04 +02:00
|
|
|
- [D3 - Documentation](https://github.com/mbostock/d3/wiki)
|