Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,8 @@ MAIL_DEFAULT_SENDER=no-reply@example.com
CELERY_BROKER_URL=redis://redis:6379/0
CELERY_RESULT_BACKEND=redis://redis:6379/0

# --- Frontend (NEXT_PUBLIC_* vars are baked into browser-side code) ---
# API base URL the frontend calls. In local dev, requests go through nginx on
# localhost, so the default below is what you want.
NEXT_PUBLIC_DEVELOP_BACKEND_URL=http://localhost
# MapTiler style URLs for the basemap layers (need a free MapTiler API key,
# e.g. https://api.maptiler.com/maps/streets-v2/style.json?key=YOUR_KEY).
# Optional: the app boots without them; the basemap is just blank.
NEXT_PUBLIC_DEVELOP_MAPTILE_STREET=
NEXT_PUBLIC_DEVELOP_MAPTILE_SATELITE=
NEXT_PUBLIC_DEVELOP_MAPTILE_DARK=

# --- Ports ---
DEVELOP_BACKEND_PORT=8000
DEVELOP_FRONTEND_PORT=3000
NGINX_HTTP_PORT=80

# --- pgAdmin ---
Expand All @@ -50,6 +38,4 @@ POSTGRES_ADMIN_PASSWORD=admin

# --- Docker image names (used by the compose files; fine to leave as-is for local builds) ---
DOCKER_IMAGE_BACKEND=bdk-backend
DOCKER_IMAGE_FRONTEND=bdk-frontend
DOCKER_IMAGE_WORKER=bdk-worker
DOCKER_IMAGE_NGINX=bdk-nginx
21 changes: 1 addition & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,6 @@ jobs:
- name: pytest
run: docker compose -f docker-compose.test.yml run --rm test

frontend:
name: frontend tests
runs-on: ubuntu-latest
defaults:
run:
working-directory: front-end
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "18"
cache: npm
cache-dependency-path: front-end/package-lock.json
- name: install
run: npm ci
# Jest + React Testing Library component/contract tests (jsdom, no browser).
- name: jest
run: npm test -- --ci

boot-smoke:
name: backend boot smoke
runs-on: ubuntu-latest
Expand All @@ -53,7 +34,7 @@ jobs:
# suite runs in-process with a memory:// limiter, so it can't catch "the
# image won't even start" — a dep missing from the lock, a Redis-storage
# boot failure, a broken migration, or WSGI wiring. `--wait` fails the job
# if /api never becomes healthy.
# if /healthz never answers.
- name: boot + health-check /api
run: docker compose -f docker-compose.smoke.yml up --build --wait --wait-timeout 240
- name: backend logs (on failure)
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,6 @@ front-end/public/asgeojson
# Python tool caches
.ruff_cache/
.pytest_cache/

# Claude Code session data (worktrees, local settings)
.claude/
10 changes: 0 additions & 10 deletions Dockerfile.nginx

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ A video demonstration of how to use this tool will be provided at a later date

| Category | Technology/Libraries |
|----------------------------|------------------------------------------------------|
| Client | 🌐 [Next.js](https://nextjs.org/) |
| Client | 🌐 Server-rendered Flask (Jinja2 + htmx) |
| Server | 🚀 [Flask](https://flask.palletsprojects.com/) |
| Database | 📦 [PostgreSQL](https://www.postgresql.org/) |
| Asynchronous Processing| 🔄 Redis & [Celery](https://docs.celeryproject.org/en/stable/) |
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
"""drop the signal-server tables

Revision ID: c7f3a84e91d2
Revises: a9e5d21c7b48
Create Date: 2026-07-07

The signal-server propagation feature (towers, their parameters, and the
rendered coverage rasters) was dead code reachable only from the retired SPA;
the code is removed in the same change. Downgrade recreates the tables as the
initial migration defined them (data is not restored).
"""

import sqlalchemy as sa

from alembic import op

# revision identifiers, used by Alembic.
revision = "c7f3a84e91d2"
down_revision = "a9e5d21c7b48"
branch_labels = None
depends_on = None


def upgrade() -> None:
op.drop_table("towerinfo")
op.drop_table("rasterdata")
op.drop_table("tower")


def downgrade() -> None:
op.create_table(
"tower",
sa.Column("id", sa.Integer(), nullable=False),
sa.Column("tower_name", sa.String(), nullable=False),
sa.Column("organization_id", sa.Integer(), nullable=False),
sa.ForeignKeyConstraint(["organization_id"], ["organization.id"]),
sa.PrimaryKeyConstraint("id"),
)
op.create_table(
"rasterdata",
sa.Column("id", sa.Integer(), nullable=False),
sa.Column("image_data", sa.LargeBinary(), nullable=True),
sa.Column("transparent_image_data", sa.LargeBinary(), nullable=True),
sa.Column("loss_color_mapping", sa.JSON(), nullable=True),
sa.Column("north_bound", sa.String(), nullable=True),
sa.Column("south_bound", sa.String(), nullable=True),
sa.Column("east_bound", sa.String(), nullable=True),
sa.Column("west_bound", sa.String(), nullable=True),
sa.Column("tower_id", sa.Integer(), nullable=True),
sa.ForeignKeyConstraint(["tower_id"], ["tower.id"], ondelete="CASCADE"),
sa.PrimaryKeyConstraint("id"),
)
op.create_table(
"towerinfo",
sa.Column("id", sa.Integer(), nullable=False),
sa.Column("latitude", sa.String(), nullable=True),
sa.Column("longitude", sa.String(), nullable=True),
sa.Column("frequency", sa.String(), nullable=True),
sa.Column("radius", sa.String(), nullable=True),
sa.Column("antennaHeight", sa.String(), nullable=True),
sa.Column("antennaTilt", sa.String(), nullable=True),
sa.Column("horizontalFacing", sa.String(), nullable=True),
sa.Column("floorLossRate", sa.String(), nullable=True),
sa.Column("tower_id", sa.Integer(), nullable=True),
sa.ForeignKeyConstraint(["tower_id"], ["tower.id"], ondelete="CASCADE"),
sa.PrimaryKeyConstraint("id"),
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
"""drop the challenge_locations table

Revision ID: e4b8c62f17a9
Revises: c7f3a84e91d2
Create Date: 2026-07-07

The BDC challenge export was reachable only from the retired SPA; its routes
and ops are removed in the same change. Downgrade recreates the table as the
initial migration defined it (data is not restored).
"""

import sqlalchemy as sa

from alembic import op

# revision identifiers, used by Alembic.
revision = "e4b8c62f17a9"
down_revision = "c7f3a84e91d2"
branch_labels = None
depends_on = None


def upgrade() -> None:
op.drop_table("challenge_locations")


def downgrade() -> None:
op.create_table(
"challenge_locations",
sa.Column("id", sa.Integer(), autoincrement=True, nullable=False),
sa.Column("address", sa.String(), nullable=True),
sa.Column("primary_city", sa.String(), nullable=True),
sa.Column("state", sa.String(), nullable=True),
sa.Column("zip_code", sa.String(), nullable=True),
sa.Column("zip_code_suffix", sa.String(), nullable=True),
sa.Column("unit_count", sa.String(), nullable=True),
sa.Column("building_type_code", sa.String(), nullable=True),
sa.Column("non_bsl_code", sa.String(), nullable=True),
sa.Column("bsl_lacks_address_flag", sa.String(), nullable=True),
sa.Column("latitude", sa.String(), nullable=True),
sa.Column("longitude", sa.String(), nullable=True),
sa.Column("address_id", sa.String(), nullable=True),
sa.Column("contact_name", sa.String(), nullable=True),
sa.Column("contact_email", sa.String(), nullable=True),
sa.Column("contact_phone", sa.String(), nullable=True),
sa.Column("category_code", sa.String(), nullable=True),
sa.Column("location_id", sa.String(), nullable=True),
sa.PrimaryKeyConstraint("id"),
)
Loading
Loading