Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 936 Bytes

README.md

File metadata and controls

19 lines (16 loc) · 936 Bytes

Django/HTMX/PWA Demo

This is an app demoing one way to build a PWA using Django. It uses

  • Workbox for the service worker
  • HTMX for SPA-like navigation
  • Hyperscript for interactivity (ok, really just toggling navbar classes)

Run Locally

pipenv install
pipenv run python manage.py makemigrations
pipenv run python manage.py migrate
pipenv run dev
open http://127.0.0.1:8000/

Demo App

This is hosted online on Railway. You can view (and install!) the demo app here: https://django-htmx-pwa-demo-production.up.railway.app/

Visiting the above link on an Android phone will prompt you to install the app. Visiting on iOS, you will need to navigate to Share -> Add to Home Screen to install the app.