tiktok-api¶
FastAPI backend for TikTok-like content: posts, news articles, serialized
stories (series/chapters), user profiles, app settings, and USA News posts.
Configuration loads at runtime from AWS Secrets Manager via fs_config.
Stack¶
| Layer | Technology |
|---|---|
| Runtime | Python 3.10+ |
| Framework | FastAPI + Uvicorn (hot reload locally) |
| Data | MySQL (tiktok DB), S3 (IAM role / default credential chain) |
| Auth | x-api-key header (separate GET vs POST keys) |
| Deploy | Docker optional; bare-metal python main.py for local dev |
External API examples: Postman collection.
Documentation map¶
| Page | What it covers |
|---|---|
| Local development | Venv, ENVIRONMENT=stg, run without Docker |
| Configuration & secrets | Secret paths, API keys, S3 |
| API modules | Router mount map |
| Secrets reference | Deploy prerequisites |
| USA News Read API | USA News GET contract |
Task lineage¶
- AISD-131 — documentation portal at docs.skyneto.com
- AISD-144 — this MkDocs package
Build these docs locally¶
cd tiktok-api
python3.10 -m venv .venv_docs && source .venv_docs/bin/activate
pip install -r requirements-docs.txt
mkdocs build --strict
mkdocs serve
Quick start¶
export ENVIRONMENT=stg
python main.py
curl -s http://127.0.0.1:8080/api/status