skynet-app-api¶
FastAPI service backing the Skynet web application (skynet-app). It exposes
REST endpoints for campaign management, creatives, site configuration, reports,
automations, infrastructure operations (Cloudflare / DigitalOcean droplets), and
admin user management.
The service runs on port 8080 (uvicorn locally; nginx in EC2 deploys).
Stack¶
| Layer | Technology |
|---|---|
| Runtime | Python 3.8 |
| Framework | FastAPI + uvicorn (hot reload locally) |
| Data | MySQL (aiomysql), Redis (single-node or cluster), RabbitMQ |
| Config | AWS Secrets Manager + SSM via fs_config |
| Auth | JWT + Redis-backed sessions |
| Deploy | CodeDeploy on EC2 (appspec.yml, scripts/after_install) |
Documentation map¶
| Page | What it covers |
|---|---|
| Local development | Venv, ENVIRONMENT=local, running without Docker |
| Architecture | App factory, router mount map, middleware |
| API modules | Per-module endpoint families |
| Configuration & secrets | ENVIRONMENT, secret paths, LOCAL_PROD_DB |
| Cloudflare settings API | Zone settings endpoint contract |
| Secrets naming convention | AWS path layout (AISD-14) |
Task lineage¶
- AISD-131 — org documentation portal at docs.skyneto.com
- AISD-141 — this documentation package
- AISD-14 — secrets consolidation and naming convention
Build these docs locally¶
cd skynet-app-api
python3.8 -m venv .venv_docs && source .venv_docs/bin/activate
pip install -r requirements-docs.txt
mkdocs build --strict
mkdocs serve # http://127.0.0.1:8000/
Quick start (API)¶
export ENVIRONMENT=local
cd src/skynet_api && python main.py
curl -s localhost:8080/api/status
See Local development for the full setup.