File size: 1,562 Bytes
e4e4574
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
71
72
73
# Server Entry Points

## Primary Production Server

**Use this for production deployments:**

```bash
python app.py
```

OR use the convenient launcher:

```bash
python start_server.py
```

**File:** `app.py`
- Production-ready FastAPI application
- Comprehensive monitoring and WebSocket support
- All features enabled (160+ API sources)
- Full database persistence
- Automated scheduling
- Rate limiting
- Health checks
- HuggingFace integration

## Server Access Points

Once started, access the application at:

- **Main Dashboard:** http://localhost:7860/
- **API Documentation:** http://localhost:7860/docs
- **Health Check:** http://localhost:7860/health

## Deprecated Server Files

The following server files are **deprecated** and kept only for backward compatibility:

- `simple_server.py` - Simple test server (use app.py instead)
- `enhanced_server.py` - Old enhanced version (use app.py instead)
- `real_server.py` - Old real data server (use app.py instead)
- `production_server.py` - Old production server (use app.py instead)

**Do not use these files for new deployments.**

## Docker Deployment

For Docker deployment, the Dockerfile already uses `app.py`:

```bash
docker build -t crypto-monitor .
docker run -p 7860:7860 crypto-monitor
```

## Development

For development with auto-reload:

```bash
uvicorn app:app --reload --host 0.0.0.0 --port 7860
```

## Configuration

1. Copy `.env.example` to `.env`
2. Add your API keys (optional, many sources work without keys)
3. Start the server

```bash
cp .env.example .env
python app.py
```