-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
25 lines (20 loc) · 697 Bytes
/
justfile
File metadata and controls
25 lines (20 loc) · 697 Bytes
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
project := justfile_directory()
backend := project / "backend"
frontend := project / "frontend"
# List available recipes
default:
@just --list
# Start the backend server
backend:
source {{backend}}/venv/bin/activate && cd {{backend}} && uvicorn main:app --reload --host 0.0.0.0 --port 8000
# Start the frontend dev server
frontend:
cd {{frontend}} && npm run dev
# Run the frontend build check
build:
cd {{frontend}} && npx next build
# Test the Genie endpoint
test-genie question="top 5 countries by severity":
curl -s -X POST http://localhost:8000/api/genie \
-H "Content-Type: application/json" \
-d '{"question":"{{question}}"}' | python3 -m json.tool