···10101111.PHONY: build
1212build: ## Build all executables
1313- go build ./cmd/webplc
1313+ go build . -o webplc
14141515.PHONY: test
1616test: ## Run all tests
···3434check: ## Compile everything, checking syntax (does not output binaries)
3535 go build ./...
36363737+.PHONY: sync-spec
3838+sync-spec: ## Copies specs text from top level of git repo
3939+ cp -r ../spec/* ./spec/
4040+3741.env:
3842 if [ ! -f ".env" ]; then cp example.dev.env .env; fi
39434044.PHONY: run-dev-webplc
4141-run-dev-webplc: .env ## Runs 'bskyweb' for local dev
4242- GOLOG_LOG_LEVEL=info go run ./cmd/webplc serve --debug
4545+run-dev-webplc: .env ## Runs 'webplc' for local dev
4646+ GOLOG_LOG_LEVEL=info go run . serve --debug
+13-10
website/README.md
···1122-`go-didplc`: did:plc in golang
33-==============================
22+`web.plc.directory`
33+===================
4455-This golang package will eventually be an implementation of the did:plc specification in golang, including at a minimum verification of DID documents from a PLC operation log.
55+This is a basic website for the PLC directory, allowing lookup of individual DID documents.
6677-For now it primarily contains a basic website for the PLC directory, allowing lookup of individual DID documents.
77+It also hosts a copy of the PLC specs. Due to a quirk of Go static file embedding, the specification files need to be copied from the top-level of this git repostiory every time there are edits:
88+99+```shell
1010+make sync-specs
1111+```
8129131014## Developer Quickstart
11151212-Install golang. We are generally using v1.20+.
1616+Install golang. We are generally using v1.22+.
13171414-In this directory (`go-didplc/`):
1818+In this directory (`website/`):
15191620 # re-build and run daemon
1717- go run ./cmd/webplc serve
2121+ go run . serve
18221923 # build and output a binary
2020- go build -o webplc ./cmd/webplc/
2424+ go build -o webplc .
21252222-The easiest way to configure the daemon is to copy `example.env` to `.env` and
2323-fill in auth values there.
2626+The easiest way to configure the daemon is to copy `example.env` to `.env` and fill in auth values there.