Skip to content

Create config file by interacting with User Interface

License

Notifications You must be signed in to change notification settings

AlvinHon/config-ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Config UI

This is a web application to allow users to create config file by interacting with User Interface. The web application is now deployed at Github Pages here!

Users can define a template in yaml format. This template specifies how the UI will be rendered to answer questions like:

  • what are the fields in the config
  • what are their input types
  • is it optional or required
  • what are the possible values of the field
  • etc.

Take the below template as example for creating an UI for linux unit service file.

Unit:
  Description:
    type: string
    required: true
    description: Service description
Service:
  ExecStart:
    type: string
    required: true
    description: Commands that are executed when this service is started.
  Restart:
    type: string
    description: Configures whether the service shall be restarted when the service process exits, is killed, or a timeout is reached.
    options: ["no", "on-success", "on-failure", "on-abnormal", "on-watchdog", "on-abort", "always"]
    default: no
Install:
  WantedBy:
    type: string
    required: true

Steps to apply it to the Config UI:

  1. Click Open Template. A form will be opened.
  2. Paste the template to the text area in the form.
  3. Click the gray area to close the form.
  4. Customize the values by interacting with the UI.
  5. Click Export to config, Export to json or Export to yaml to download the configuration file with the customized values.

About

Create config file by interacting with User Interface

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published