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

Overview

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
  • pipenv

πŸƒ Running

git clone [email protected]:pyxy-dk/sanic-domonic-h5bp.git

cd sanic-domonic-h5bp

pipenv install --dev

pipenv shell

sanic src.sanic_domonic_h5bp.app

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

Owner
PyXY
PyXY πŸ’– FOSS
PyXY
A platform for developers πŸ‘©β€πŸ’» who wants to share their programs and projects.

Hacktoberfest-2021 A platform for developers πŸ‘©β€πŸ’» who wants to share their projects and programs. Hacktoberfest has updated their rules and now this

Mayank Choudhary 40 Nov 07, 2022
A template repo for use in the Advent of Code

AoC-Template A template repo for use in the Advent of Code The README_template.md must contain "STATS_TABLE" to be replaced by the generated table, an

0 Jan 14, 2022
Python-boilerplate - Python Boilerplate Project Structure

python-boilerplate Python Boilerplate Project Structure Folder Structure .github

1 Jan 18, 2022
Cookiecutter to create a Google Function. Powered by Poetry, GitHub actions, and Google Cloud Platform

Cookiecutter Google Function Cookiecutter template for a Google Function. Powered by Poetry, and GitHub actions. Quickstart Install the latest Cookiec

Arthur 1 Jan 07, 2022
A template repository implementing HTML5 Boilerplate 8.0 in Sanic using the Domonic framework.

sanic-domonic-h5bp A template repository implementing HTML5 Boilerplate 8.0 in Sanic using the Domonic framework. If you need frontend interactivity,

PyXY 3 Dec 12, 2022
A template for some new Python tool or package with a reasonable basic setup.

python-app-template A template with a reasonable basic setup, including: black (formatting) flake8 (linting) mypy (type checking) isort (import sortin

Anton Pirogov 3 Jul 19, 2022
Bleeding edge django template focused on code quality and security.

wemake-django-template Bleeding edge django2.2 template focused on code quality and security. Purpose This project is used to scaffold a django projec

wemake.services 1.6k Jan 08, 2023
A boilerplate Django project for quickly getting started.

The Definitive Django Learning Platform. Django Project Boilerplate This repository is a boilerplate Django project for quickly getting started. Getti

Le Huynh Long 1 Nov 01, 2021
A simple cookiecutter to create Python Telegram bots, wrapped with Django.

PTB Django cookiecutter A simple cookiecutter to create Python Telegram bots, wrapped with Django. Based on this cool projects python-telegram-bot (PT

Carlos Lugones 20 Nov 12, 2022
NHS Theme for Streamlit applications

NHS Streamlit App Template Deployment (local) The tool has been built using Stre

nhs.pycom 3 Nov 07, 2022
simple flask starter app utilizing docker

Simple flask starter app utilizing docker to showcase seasonal anime using jikanpy (myanimelist unofficial api).

Kennedy Ngugi Mwaura 5 Dec 15, 2021
This is a boilerplate for a basic backend app using Python, Django and SQLite, as developed after tutorials with Programming with Mosh

This is a boilerplate for a basic backend app using Python, Django and SQLite, as developed after tutorials with Programming with Mosh

Gustavo Catala Sverdrup 1 Jan 07, 2022
Template for creating PyPI project

template-for-creating-pypi-project Template for creating PyPI project Hello there! This is a template for creating a PyPI project. Fork or clone this

4 Apr 25, 2022
Generic template for python service

Cookie cutter template example Technology stack Flask Gevent UWSGI Poetry Docker Docker-compose Installation pip install cookiecutter cookiecutter git

Churkin Oleg 11 Oct 22, 2022
A python starter package to be used as a template for creating your own python packages.

Python Starter Package This is a basic python starter package to be used as a template for creating your own python packages. Github repo: https://git

Mystic 1 Apr 04, 2022
Bleeding edge django template focused on code quality and security.

wemake-django-template Bleeding edge django2.2 template focused on code quality and security. Purpose This project is used to scaffold a django projec

wemake.services 1.6k Jan 04, 2023
Project template layout for Django 3.0+

Django 3.0+ project template This is a simple Django 3.0+ project template with my preferred setup. Most Django project templates make way too many as

JosΓ© Padilla 649 Dec 30, 2022
Template repository to build PyTorch projects from source on any version of PyTorch/CUDA/cuDNN.

Template repository to build PyTorch projects from source on any version of PyTorch/CUDA/cuDNN.

Joonhyung Lee/μ΄μ€€ν˜• 651 Dec 12, 2022
The starter repository for submissions to the GeneDisco challenge for optimized experimental design in genetic perturbation experiments

GeneDisco ICLR-22 Challenge Starter Repository The starter repository for submissions to the GeneDisco challenge for optimized experimental design in

22 Dec 06, 2022
A cookiecutter template for python scripts

cookiecutter-py-script A cookiecutter template for python scripts Prerequisites Git Usage pip install cookiecutter

Zeheng Li 1 Dec 14, 2022