glx serve
Serve a local browser-based viewer for a GLX archive (prints a URL to open)
Synopsis
Serve a browser-based viewer for a GENEALOGIX archive, read-only unless --edit is given.
Starts a small local web server and prints a URL to open in your browser (it does not open the browser for you). The viewer is interactive and shows:
- Dashboard: entity counts, assertion confidence, and coverage
- Person profiles: names, vitals, event timeline, assertions with evidence
- Family tree: interactive pedigree and descendancy charts
- Sources: every source with its citations and locators
The server binds to localhost by default so the archive stays on your machine. The archive is loaded once at startup; restart the server to pick up external edits made by the CLI or a text editor.
With --edit, the viewer can also add people, edit a person's name, sex and gender, and add parent, child and spouse relationships. Additions go through the same checks as 'glx add person' and 'glx add relationship' and write the same files; an edit rewrites only that person's file, and is refused if the file changed since the page loaded. Editing needs a multi-file directory.
Accepts either a multi-file directory or a single .glx file. If no path is given, the current directory is used.
glx serve [path] [flags]Examples
# Serve the current directory on the default port
glx serve
# Serve a specific archive
glx serve my-family-archive
# Serve a single-file archive on a custom port
glx serve family.glx --port 9000
# Pick any free port (printed on startup)
glx serve --port 0
# Allow adding and editing people in the browser
glx serve my-family-archive --editOptions
--edit Allow adding and editing people and relationships (directory archives only)
-h, --help help for serve
--host string Host/interface to bind (use 127.0.0.1 to keep the viewer local) (default "127.0.0.1")
-p, --port int Port to listen on (0 picks any free port) (default 8080)Options inherited from parent commands
-q, --quiet Suppress non-error output (where supported)SEE ALSO
- glx - GENEALOGIX CLI - Manage and validate genealogy archives