hub

command module
v0.1.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2024 License: MIT Imports: 11 Imported by: 0

README

hub

hub is a links & bookmarks app designed to be simple, lightweight, and easy to use. It relies on a YAML configuration file to define the links and groups. Can be deployed as a container or binary. A Helm chart is also available.

tag Go Version GoDoc Lint Scan Build Status Go Report Card Contributors License

Installation

Supported Platforms: linux_amd64/linux_arm64.

From Binary

You can download the latest release from here

hub -config /path/to/config.yaml
Using Docker
docker run -d \
    -p 8000:8000 \
    -v /path/to/config.yaml:/app/config.yaml \
    ghcr.io/zcubbs/hub:latest
Using Helm
helm install hub oci://ghcr.io/zcubbs/hub/hub -f /path/to/values.yaml

see values.yaml for the default values.

Configuration

HuB is configured via a YAML file you can provide to the container/binary. The example configuration is located at config.yaml. The following is an example configuration:

app:
  server:
    port: <int>             # Application port
  customHtml: <string>      # Custom HTML content
  title: <string>           # Application title
  subtitle: <string>        # Application subtitle
  logoUrl: <string>         # URL to the logo image
  disclaimer: <string>      # Disclaimer text
  debug: <bool>             # Debug mode (true/false)

data:
  links:                   # Array of main links
    - caption: <string>
      url: <string>
      icon: <string>
      newTab: <bool>
      links:               # Nested links
        - ...

  groups:                  # Array of groups
    - caption: <string>
      links:
        - ...
      sections:            # Array of sections within a group
        - caption: <string>
          links:
            - ...
  footer:
    links:
      - caption: <string>
        url: <string>
        icon: <string>
        newTab: <bool>
      - ...

Development

Prerequisites
Run Locally
task run

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

HuB is licensed under the MIT license.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL