-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjustfile
More file actions
70 lines (50 loc) · 1.8 KB
/
justfile
File metadata and controls
70 lines (50 loc) · 1.8 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# https://just.systems
alias d := dev
dev:
uv run fastapi dev api/main.py
alias m := migrate
migrate:
uv run alembic -n data_db upgrade heads
uv run alembic -n meta_db upgrade heads
check:
uv run alembic -n data_db check
uv run alembic -n meta_db check
alias s := scrape
scrape:
uv run -m scraper.main
alias tw := tailwind
tailwind:
tailwindcss -i api/static/tw.css -o api/static/globals.css --watch
# update all uv packages
upgrade:
uvx uv-upgrade
test:
uv run basedpyright
uv run djlint api/templates/ --lint
uv run djlint api/templates/ --check
lighthouse PATH="":
lighthouse http://localhost:8000{{ PATH }} --output-path=localhost.html
alias dau := debug_all_units
debug_all_units SEMKEZ:
uv run scrapy parse --spider=units -c parse_start_url "https://www.vvz.ethz.ch/Vorlesungsverzeichnis/sucheLehrangebot.view?lang=de&semkez={{ SEMKEZ }}&seite=0"
alias du := debug_single_unit
debug_single_unit SEMKEZ UNITID:
uv run scrapy parse --spider=units -c parse_unit "https://www.vvz.ethz.ch/Vorlesungsverzeichnis/lerneinheit.view?semkez={{ SEMKEZ }}&ansicht=ALLE&lerneinheitId={{ UNITID }}&lang=en"
alias dal := debug_all_lecturers
debug_all_lecturers SEMKEZ:
uv run scrapy parse --spider=lecturers -c parse_start_url "https://www.vvz.ethz.ch/Vorlesungsverzeichnis/sucheDozierende.view?lang=de&semkez={{ SEMKEZ }}&seite=0"
jaeger:
docker run --rm --name jaeger \
-p 16686:16686 \
-p 4317:4317 \
-p 4318:4318 \
-p 5778:5778 \
-p 9411:9411 \
cr.jaegertracing.io/jaegertracing/jaeger:2.15.0
influxdb:
docker run --rm -p 8181:8181 \
influxdb:3-core influxdb3 serve \
--node-id=my-node-0 \
--object-store=file \
--data-dir=/var/lib/influxdb3/data \
--plugin-dir=/var/lib/influxdb3/plugins