diff options
| author | Sam Scholten | 2026-06-14 20:00:15 +1000 |
|---|---|---|
| committer | Sam Scholten | 2026-06-14 20:00:15 +1000 |
| commit | decc46c876e7b5552f5f5ecac4ee4f1a64ad1d62 (patch) | |
| tree | 46875e236a062189115c0cd8ed8f1d82980c16b7 /justfile | |
| download | abvjt-main.tar.gz abvjt-main.zip | |
Diffstat (limited to 'justfile')
| -rw-r--r-- | justfile | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/justfile b/justfile new file mode 100644 index 0000000..74bf926 --- /dev/null +++ b/justfile @@ -0,0 +1,41 @@ +# abvjt — Journal Abbreviation Lookup Service +# +# USAGE: +# just build # Build the binary +# just scrape # Build and scrape WOS data into SQLite +# just serve # Build and start the server +# just dev # Build, scrape, and serve +# just clean # Clean build artifacts and database + +default: + @echo "abvjt — Journal Abbreviation Lookup" + @echo "" + @echo " just build # Build the binary" + @echo " just scrape # Build + scrape WOS data" + @echo " just serve # Build + start server" + @echo " just dev # Build + scrape + serve" + @echo " just clean # Clean artifacts" + @just --list + +# Build the Go binary +build: + go build -o abvjt . + +# Build and scrape WOS data into data/abvjt.db +scrape: build + ./abvjt scrape + +# Build and start the server +serve: build + ./abvjt serve + +# Full development cycle: build, scrape, serve +dev: build + ./abvjt scrape + ./abvjt serve + +# Clean artifacts +clean: + go clean + rm -f abvjt + rm -f data/abvjt.db |
