server

module
v0.0.0-...-e39326f Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2025 License: AGPL-3.0

README

Phylum Server

The Phylum server is written in Go, and requires a postgres server to be running.

$ docker run -it \
    -e POSTGRES_USER=phylum \
    -e POSTGRES_PASSWORD=<password> \
    -v ./data/postgres:/var/lib/postgresql/data \
    docker.io/postgres:17

The working directory can be changed by passing in the -W flag, which is useful for local development. The data folder in the repo root is intended to be the working directory for local development, and is ignored by git.

Add your db password to data/config.yml, and run the server:

$ go run -C server cmd/phylum.go -W ../data serve

To use the CLI, you can use:

$ go run -C server cmd/phylum.go -W ../data <cmd>

API

An OpenAPI document is a work in progress. If you do intend to look around, note that almost all <path>s can have a <uuid>: prefix to make the path relative to that UUID. This also means that if you know the UUID of the resource, you can simply use <uuid>: as the path. This is the recommended way, and is the way the client app uses the API.

Directories

Path Synopsis
internal
api/webdav/impl
Package webdav provides a WebDAV server implementation.
Package webdav provides a WebDAV server implementation.
api/webdav/xml
Package xml implements a simple XML 1.0 parser that understands XML name spaces.
Package xml implements a simple XML 1.0 parser that understands XML name spaces.
db

Jump to

Keyboard shortcuts

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