Python 3 with FastAPI, in VS Code
FastAPI is a free, open-source Python framework for building web APIs. You write ordinary Python functions with type hints, and FastAPI turns them into HTTP endpoints that validate their input, return JSON, and document themselves on an interactive /docs page. It runs on Uvicorn, a small web server that installs with it, and its TestClient lets you send requests to your app from a test file without starting a server. VS Code is the editor, curl is the command-line client, and SQLite comes built into Python.
Python 3 with FastAPI, in VS Code
FreeFastAPI is a free, open-source Python framework for building web APIs. You write ordinary Python functions with type hints, and FastAPI turns them into HTTP endpoints that validate their input, return JSON, and document themselves on an interactive /docs page. It runs on Uvicorn, a small web server that installs with it, and its TestClient lets you send requests to your app from a test file without starting a server. VS Code is the editor, curl is the command-line client, and SQLite comes built into Python. Every lesson is readable text with copyable code, keyboard-friendly quizzes and step-throughs, and videos with YouTube captions.
- Install Python 3.11 or newer from python.org (on a Chromebook, turn on Linux and install python3 with apt).
- Install VS Code and Microsoft's Python extension.
- Make a folder called backend-course, open it in VS Code, and create a virtual environment with python -m venv .venv.
- Activate the environment and run python -m pip install "fastapi[standard]" (keep the quotes).
- Save a short main.py that creates a FastAPI app with one route, then run fastapi dev main.py.
- Open http://127.0.0.1:8000/docs in your browser, or run curl -i http://127.0.0.1:8000/ in a second terminal.