fastcheck/fastcheck_api
2026-04-29 12:09:28 -04:00
..
app fastcheck_api fix 2026-04-29 12:09:28 -04:00
docs API client 2026-04-16 12:05:29 -04:00
__init__.py API client 2026-04-16 12:05:29 -04:00
.env copy.example API client 2026-04-16 12:05:29 -04:00
.env.example CORS fix 2026-04-20 05:40:35 -04:00
README.md API client 2026-04-16 12:05:29 -04:00
requirements.txt API client 2026-04-16 12:05:29 -04:00
response_sample.json fastcheck_api fix 2026-04-29 11:18:51 -04:00
run.sh API client 2026-04-16 12:05:29 -04:00

FastCheck API (FastAPI)

This is a parallel, client-facing API that reuses the existing MongoDB database and collections used by the Node.js backend.

Documentation

  • OpenAPI schema: GET /openapi.json
  • Customer docs (UI): /docs
  • Swagger UI (internal): /internal/docs
  • ReDoc (internal): /internal/redoc
  • Customer docs (repo): docs/index.md

Local run (no Docker)

  1. Create and activate a virtual environment.
  2. Install dependencies:
pip install -r fastcheck_api/requirements.txt
  1. Create an env file:
cp fastcheck_api/.env.example fastcheck_api/.env
  1. Start the API:
export $(cat fastcheck_api/.env | xargs)
uvicorn fastcheck_api.app.main:app --host ${FASTCHECK_API_HOST:-127.0.0.1} --port ${FASTCHECK_API_PORT:-8080} --reload
  1. Start the worker (in a separate shell):
export $(cat fastcheck_api/.env | xargs)
python -m fastcheck_api.app.workers.check_worker