Skip to content

Add FastAPI as a backend framework option#87

Open
aduquehd wants to merge 2 commits into
intercom:mainfrom
aduquehd:add-fastapi-framework
Open

Add FastAPI as a backend framework option#87
aduquehd wants to merge 2 commits into
intercom:mainfrom
aduquehd:add-fastapi-framework

Conversation

@aduquehd

@aduquehd aduquehd commented Jul 14, 2026

Copy link
Copy Markdown

Adds FastAPI as a fifth backend framework choice for the interview setup, alongside Rails, Spring, Node, and Django.

Context

FastAPI has become one of the most widely used web frameworks in the Python ecosystem — for many Python developers today it's the default choice for building APIs. Offering it as an option lets people run Minicom on the stack they already use daily, implementing exactly the same contract as the existing backends.

Changes

  • New fastapi/ backend with the same functionality as the other frameworks: POST /foo and POST /bar return {"success": true} on port 3000, with permissive CORS matching the Django service
  • Structure intentionally mirrors the Django backend so it feels familiar: urls.py (central route registration), api.py (endpoint handlers), main.py (app setup + CORS)
  • script/fastapi/setup and script/fastapi/start for Mac/Linux/WSL, plus .bat equivalents for Windows, modeled on the Django scripts
  • Pinned dependencies (fastapi==0.139.0, uvicorn==0.51.0) and a framework README.md covering setup and how to add a new module
  • Root README.md updated to list fastapi in the framework choices, setup examples, and folder index

Verified: both endpoints return the same response as the Django backend ({"success": true} with Access-Control-Allow-Origin: *), and the Foo and Bar sites fire the "Yay! Everything works" alert against it.

aduquehd added 2 commits July 14, 2026 14:18
Implements the same contract as the existing backends: POST /foo and POST /bar return {"success": true} on port 3000, with permissive CORS matching the Django service.

Includes setup/start scripts for Unix and Windows, pinned requirements, a framework README, and root README updates listing the new option.
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedpypi/​uvicorn@​0.51.098100100100100
Addedpypi/​fastapi@​0.139.0100100100100100

View full report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant