forked from sylvester-francis/Resource-Reserver
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTiltfile
More file actions
66 lines (55 loc) · 1.87 KB
/
Copy pathTiltfile
File metadata and controls
66 lines (55 loc) · 1.87 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
# Tiltfile - Development workflow for Resource-Reserver
# Documentation: https://docs.tilt.dev/
# Load Docker Compose configuration
docker_compose('docker-compose.yml')
# Configure Docker Compose resources with labels and dependencies
dc_resource('backend', labels=['api'])
dc_resource('frontend', labels=['web'], resource_deps=['backend'])
# Custom resources for better organization
local_resource(
'lint-backend',
cmd='cd apps/backend && ruff check app/ cli/ --output-format=github',
labels=['quality'],
auto_init=False,
trigger_mode=TRIGGER_MODE_MANUAL
)
local_resource(
'test-backend',
cmd='cd apps/backend && pytest tests/ --maxfail=1 --tb=short',
labels=['testing'],
auto_init=False,
trigger_mode=TRIGGER_MODE_MANUAL,
resource_deps=['backend']
)
local_resource(
'format-code',
cmd='cd apps/backend && ruff format . && ruff check --fix .',
labels=['quality'],
auto_init=False,
trigger_mode=TRIGGER_MODE_MANUAL
)
# Watch additional files for changes
watch_file('apps/backend/requirements.txt')
watch_file('apps/frontend/package.json')
watch_file('.env')
# Print helpful information on startup
print("""
========================================
Resource-Reserver Development Environment
========================================
Services:
- Backend API: http://localhost:8000
- Frontend Web: http://localhost:3000
- API Docs: http://localhost:8000/docs
- Tilt UI: http://localhost:10350
Manual Tasks (click in Tilt UI):
- lint-backend: Run ruff on Python code
- test-backend: Run pytest test suite
- format-code: Format all code with black/ruff
Live Reload:
- Backend: Edit files in apps/backend/app or apps/backend/cli
- Frontend: Edit files in apps/frontend/src/
Press space or visit http://localhost:10350 to open Tilt UI
Press Ctrl+C to stop all services
========================================
""")