traefik/webui
Maxime Wojtczak 5500658f5a feat(UI) : Working UI.
chore(Build) : Add Babel for build.
chore(Babel) : Add babel configuration.
style(Code) : Enhance code style.
2017-05-04 01:12:46 +02:00
..
conf feat(UI) : Working UI. 2017-05-04 01:12:46 +02:00
gulp_tasks Move webui to FountainJS with Webpack 2016-07-27 16:16:02 +02:00
src feat(UI) : Working UI. 2017-05-04 01:12:46 +02:00
.babelrc feat(UI) : Working UI. 2017-05-04 01:12:46 +02:00
.editorconfig feat: new Web UI build system 2016-01-20 20:06:07 +01:00
.gitattributes Move webui to FountainJS with Webpack 2016-07-27 16:16:02 +02:00
.gitignore Move webui to FountainJS with Webpack 2016-07-27 16:16:02 +02:00
.yo-rc.json Move webui to FountainJS with Webpack 2016-07-27 16:16:02 +02:00
Dockerfile Fix travis script (#1067) 2017-02-02 10:58:42 +01:00
gulpfile.js Move webui to FountainJS with Webpack 2016-07-27 16:16:02 +02:00
package.json feat(UI) : Working UI. 2017-05-04 01:12:46 +02:00
readme.md License 2017, Træfɪk => Træfik 2017-04-24 15:12:44 +02:00
yarn.lock feat(UI) : Working UI. 2017-05-04 01:12:46 +02:00

Træfik Web UI

Access to Træfik Web UI, ex: http://localhost:8080

Interface

Træfik Web UI provide 2 types of informations:

  • Providers with their backends and frontends information.
  • Health of the web server.

How to build (for backends developer)

Use the make file :

make build           # Generate Docker image
make generate-webui  # Generate static contents in `traefik/static/` folder.

How to build (only for frontends developer)

  • prerequisite: Node 4+ yarn

  • Go to the directory webui

  • To install dependencies, execute the following commands:

    • yarn install
  • Build static Web UI, execute the following command:

    • yarn run build
  • 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
    • bundle JavaScript in one file

How to edit (only for frontends developer)

Don't change manually the files in the directory static

  • Go to the directory webui

  • Edit files in webui/src

  • Run in development mode :

    • yarn run serve
  • Træfik API connections are defined in:

    • webui/src/app/core/health.resource.js
    • webui/src/app/core/providers.resource.js
  • The pages contents are in the directory webui/src/app/sections.

Libraries