Split the job tracker out of web_server into its own app
The applications tracker, leads inbox, email pipeline and capture userscript move here from web_server's backend, Python service and Vue app, as one Go binary that serves its own Vue SPA under /jobs/. - The Go services, resolvers and tests move over almost unchanged. - The three Claude calls are ported from Python to Go (internal/claude), with the same prompts, per-model request shaping and error messages. - There is no login: internal/auth asks the site backend's /auth/validate-admin with the visitor's cookies, and relays refreshed cookies back. - A Settings page replaces the admin-panel capture token card and adds the Microsoft sign-in link and a manual email sync. - The userscript is 2.0.0, at /jobs/, and migrates a saved API base. - Dockerfile, a standalone compose with Postgres, Makefile, and a Gitea CI workflow that tests and publishes the image. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
# =============================================================================
|
||||
# Makefile — the commands that verify and run this repo. `make check` is the
|
||||
# thing to run before pushing; .gitea/workflows/ci.yaml runs the same checks
|
||||
# (in containers, since the Pi runner has no host toolchains) before it
|
||||
# publishes an image.
|
||||
#
|
||||
# Needs on the host: Go (the version in go.mod) for check-go / generate, Node
|
||||
# with `npm install` done in web/ for check-web, Docker for dev.
|
||||
# =============================================================================
|
||||
|
||||
.DEFAULT_GOAL := help
|
||||
|
||||
.PHONY: help check check-go check-web generate dev
|
||||
|
||||
help:
|
||||
@echo "Targets:"
|
||||
@echo " make check run every check below"
|
||||
@echo " make check-go go vet + go test"
|
||||
@echo " make check-web vite build of web/ into a throwaway directory"
|
||||
@echo " make generate regenerate the gqlgen GraphQL code after a schema edit"
|
||||
@echo " make dev build and run the standalone stack (http://localhost:8080/jobs/)"
|
||||
|
||||
check: check-go check-web
|
||||
|
||||
check-go:
|
||||
go vet ./... && go test ./...
|
||||
|
||||
# Built into a temporary directory so a check never replaces web/dist.
|
||||
check-web:
|
||||
cd web && npx vite build --outDir "$$(mktemp -d)" --emptyOutDir
|
||||
|
||||
# Rewrites internal/graph/generated.go and internal/graph/model/models_gen.go
|
||||
# from internal/graph/schema/*.graphql. Resolver bodies are preserved.
|
||||
generate:
|
||||
go run github.com/99designs/gqlgen generate
|
||||
|
||||
dev:
|
||||
docker compose up --build
|
||||
Reference in New Issue
Block a user