Loading files
5c2804327This file is pinned to the selected release. Download the original to open it in your design tool.
Files from this revision, including CAD and LFS contents. Git history is not included.
Or in GitHub Desktop, choose File → Clone repository → URL and paste this address.
Public repositories can be cloned without signing in. For pushing, use your ThingAtlas username and a Git access token as the password.
git lfs install git clone https://thingatlas.com/git/-unclaimed/hivehub-1225459033.git
Includes Git history, branches, and Git LFS files. Clones the repository’s default branch, regardless of the version shown here.
5c2804327This file is pinned to the selected release. Download the original to open it in your design tool.
# Lightweight mock of the HiveScale API for reviewing the HivePal <-> HiveScale
# interface. No database, no hardware - just FastAPI + in-memory dummy data.
FROM python:3.12-slim
WORKDIR /app
# Install only the runtime deps first so the layer is cached across code edits.
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Just the three modules the mock needs (insights.py is copied verbatim from
# ../server so the insights endpoints behave exactly like production).
COPY hive_data.py insights.py app.py ./
EXPOSE 8000
# INTERVAL_MINUTES controls dummy-data density (default 30 min ~= 24.8k points).
ENV INTERVAL_MINUTES=30
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]