Running the Project¶
Current MVP
All commands below work against the current MVP stack.
Start All Services¶
This starts: PostgreSQL, Redis, Airflow (or Prefect), Elasticsearch.
Run the Backend¶
The API will be available at:
- API:
http://localhost:8000 - Swagger UI:
http://localhost:8000/docs - ReDoc:
http://localhost:8000/redoc
Run the Frontend¶
The dashboard will be available at http://localhost:3000.
Run the Scraper (Manual Trigger)¶
Run the ETL Pipeline¶
# Trigger a full ETL run for a specific filing
uv run python etl/run.py --filing-id 42
# Or trigger via Airflow
airflow dags trigger finsight_etl_pipeline
Database Migrations¶
cd backend
# Apply all pending migrations
uv run alembic upgrade head
# Create a new migration
uv run alembic revision --autogenerate -m "add_users_table"
# Roll back one migration
uv run alembic downgrade -1