Commit Graph

5 Commits

Author SHA1 Message Date
serversdwn
e7e660a9c3 Merge pull request #1 from serversdwn/claude/seismo-backend-server-01FsCdpT2WT4B342V3KtWx38
Build backend server for Seismo Fleet Manager v0.1
2025-11-20 17:06:24 -05:00
Claude
36ce63feb1 Change exposed port from 8000 to 8001 to avoid port conflict 2025-11-20 19:33:39 +00:00
Claude
05c63367c8 Containerize backend with Docker Compose
Added Docker support for easy deployment:
- Dockerfile: Python 3.11 slim image with FastAPI app
- docker-compose.yml: Service definition with volume mounting for data persistence
- .dockerignore: Exclude unnecessary files from Docker build
- database.py: Updated to store SQLite DB in ./data directory for volume persistence
- .gitignore: Added entries for database files and data directory
- README.md: Comprehensive documentation with Docker and local setup instructions

The application can now be run with: docker compose up -d
Database persists in ./data directory mounted as a volume
2025-11-20 18:46:46 +00:00
Claude
f976e4e893 Add Seismo Fleet Manager backend v0.1
Implemented FastAPI backend with SQLite database for tracking seismograph fleet status:
- database.py: SQLAlchemy setup with SQLite
- models.py: Emitter model with id, unit_type, last_seen, last_file, status, notes
- routes.py: POST /emitters/report and GET /fleet/status endpoints
- main.py: FastAPI app initialization with CORS support
- requirements.txt: Dependencies (FastAPI, SQLAlchemy, uvicorn)
2025-11-20 18:14:29 +00:00
serversdwn
c1bdf17454 Initial commit 2025-11-19 00:30:18 -05:00