chefbrowser

command module
v0.0.0-...-ac43bb1 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 1 Imported by: 0

README

GitHub Go Report Card go-test

Chef Browser (2024)

A simple read-only web application for browsing objects on a Chef Infra Server (or Cinc Server).

Inspiration taken from the abandoned chef-browser ruby/sinatra application.

Installation

Configuration

All configurable settings are documented in defaults.ini.

Two methods of installation are planned:

  1. Traditional deployment using systemd
  2. Docker container
docker run -d \
  -p 8080:8080 \
  -v /path/to/example.pem:/example.pem:ro \
  -v /path/to/config.ini:/config.ini:ro \
  drewhammond/chefbrowser:latest --config /config.ini

Usage

chefbrowser is a read-only web application for viewing
Chef Infra Server (or Cinc Server) resources

Usage:
  chefbrowser --config /path/to/config.ini [flags]

Flags:
      --config string   path to config file
  -h, --help            help for chefbrowser
  -v, --version         version for chefbrowser

Contributing

This project is in its infancy so any and all contributes are welcome! If you're looking for something to work on, I think the frontend could use some love.

Development

Set app_mode = development in your config file to enable developer mode. This mode does the following:

  • Go Templates are loaded from the file system instead of embedded into the backend. They can be changed without recompiling.
  • CSS/JS links in the HTML are updated to point to the local Vite dev server for live reloading.

Install UI dependencies and start the frontend development server:

make start-ui-dev

Build and start the backend server:

make build-backend
./dist/chefbrowser --config development.ini

Access the dev server at http://localhost:8080.

CSS/JS changes will trigger automatic rebuilds as long as you have the frontend development server running.

Note: Go changes will not be live reloaded. Rebuild backend for changes to take effect.

TODO

  • Test suite
  • Drop Cobra (do we need it?)
  • Support browsing multiple chef organizations
  • Windows support? (if you are interested, please file an issue!)

License

MIT

Documentation

Overview

Copyright © 2024 Drew Hammond

Directories

Path Synopsis
internal
app

Jump to

Keyboard shortcuts

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