Skip to content

pyxy-dk/sanic-domonic-h5bp

Repository files navigation

sanic-domonic-h5bp

Pipenv - Python version Imports: isort Code style: black

A template repository implementing HTML5 Boilerplate 8.0 in Sanic using the Domonic framework.

If you need frontend interactivity, this template goes well with e.g. HTMX and HyperScript rather than your run-of-the-mill bloated JS framework du jour.

📋 Requirements

  • python-3.8 or newer
  • pipenv

🏃 Running

git clone git@github.com:pyxy-dk/sanic-domonic-h5bp.git

cd sanic-domonic-h5bp

pipenv install --dev

pipenv shell

sanic src.sanic_domonic_h5bp.app

Now open http://localhost:8000/ in your browser.

Note that Sanic does not officially support running on Windows.

🗺️ File mapping from H5BP

The files from a standard download of H5BP 8.0 maps to the following files in this template project:

h5bp
│
├── css
│   ├── main.css                      ⇒ ./src/sanic_domonic_h5bp/static/css/
│   └── normalize.css                 ⇒ ./src/sanic_domonic_h5bp/static/css/
│
├── doc                               ¬ Not included
│
├── img                               ⇒ ./src/sanic_domonic_h5bp/static/img/
│
├── js
│   ├── vendor
│   │   └── modernizer-3.11.2.min.js  ⇒ ./src/sanic_domonic_h5bp/static/js/vendor/
│   ├── main.js                       ⇒ ./src/sanic_domonic_h5bp/static/js/
│   └── plugins.js                    ⇒ ./src/sanic_domonic_h5bp/static/js/
│
├── .editorconfig                     ⇒ expanded in ./.editorconfig
├── .gitattributes                    ⇒ expanded in ./.gitattributes
├── .gitignore                        ⇒ expanded in ./.gitignore
├── .htaccess                         ¬ Not included
├── 404.html                          ⇏ Implemented in domonic
├── browserconfig.xml                 ⇒ ./src/sanic_domonic_h5bp/static/
├── favicon.ico                       ⇒ ./src/sanic_domonic_h5bp/static/
├── humans.txt                        ⇒ ./src/sanic_domonic_h5bp/static/
├── icon.png                          ⇒ ./src/sanic_domonic_h5bp/static/
├── index.html                        ⇏ Implemented in domonic
├── LICENSE.txt                       ⇒ ./LICENSE
├── package.json                      ¬ Not included
├── package-lock.json                 ¬ Not included
├── robots.txt                        ⇒ ./src/sanic_domonic_h5bp/static/
├── site.webmanifest                  ⇒ ./src/sanic_domonic_h5bp/static/
├── tile.png                          ⇒ ./src/sanic_domonic_h5bp/static/
└── tile-wide.png                     ⇒ ./src/sanic_domonic_h5bp/static/

🙏 Thanks to