/web-app-from-scratch

Supporting material for my blog post series on writing a web application from scratch in Python.

Primary LanguagePythonOtherNOASSERTION

A web app from scratch

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.

Tags

There is a tag for each part of the series:

  1. part-01 -- A simple file server.
  2. part-02 -- Abstractions!
  3. part-03 -- Handlers and Middleware.
  4. part-04 -- Application and Router.
  5. part-05 -- Coming soon...

Type-checking

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.

Testing

Run pip install pytest and then py.test.

License

web-app-from-scratch is licensed under Apache 2.0. Please see LICENSE for licensing details.