aboutsummaryrefslogtreecommitdiff
path: root/justfile
blob: 74bf9262d60d26a715f56a360394b2c33277d1af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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