File size: 803 Bytes
4fc93b8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d7322bf
 
 
 
 
4fc93b8
 
 
 
 
d7322bf
4fc93b8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# Quick Reference Guide

## 🚀 Starting the Backend

### First Time Setup (Windows)
```powershell
cd backend
python setup.py
venv\Scripts\activate
python main.py
```

### First Time Setup (macOS/Linux)
```bash
cd backend
python setup.py
source venv/bin/activate
python main.py

or 

"uvicorn app:app --reload --host 127.0.0.1 --port 8000"
"uvicorn app:app --host 127.0.0.1 --port 8000"
```

### Subsequent Times
```bash
cd backend
run.bat
```

## 📡 API Quick Test

### Health Check
```bash
curl http://localhost:8000/
```

### Analyze a File
```bash
curl -X POST http://localhost:8000/analyze \
  -H "Content-Type: application/json" \
  -d '{"file_url": "https://example.com/video.mp4"}'
```

### Documentation
- **Swagger UI**: http://localhost:8000/docs
- **ReDoc**: http://localhost:8000/redoc