This repository hosts a FastAPI service that parses uploaded engine service bulletin PDFs.
- app.py: FastAPI application
- requirements.txt: Python dependencies
- .gitignore: ignores caches/logs
-
Deploy on Railway (or any host):
- Set start command to
uvicorn app:app --host 0.0.0.0 --port $PORT - Add
OPENAI_API_KEYin environment variables if you extend with LLM calls.
- Set start command to
-
Local run (for testing):
pip install -r requirements.txt uvicorn app:app --reload
-
API endpoint
POST /parse Form field: file (PDF) Response JSON: { filename, engine, text_preview }
- Integrate OpenAI extraction in place of
text_preview - Lock down CORS origins
- Add tests & CI (GitHub Actions)