Supporting material for my blog post series on writing a web application from scratch in Python.
You'll need Python 3.6+ to run any of this code. Start by reading
scratch/server.py
. Run the application with python -m scratch
.
There is a tag for each part of the series:
part-01
-- A simple file server.part-02
-- Abstractions!part-03
-- Handlers and Middleware.part-04
-- Application and Router.part-05
-- Coming soon...
This repo uses Python 3 type annotations which can be type-checked
using mypy. Run pip install mypy
and then mypy scratch
to
type check the code.
Run pip install pytest
and then py.test
.
web-app-from-scratch is licensed under Apache 2.0. Please see LICENSE for licensing details.