https://github.com/devkral/django-pwa-batteries
Go frontend and mobile! Kill backend!
https://github.com/devkral/django-pwa-batteries
Last synced: about 1 year ago
JSON representation
Go frontend and mobile! Kill backend!
- Host: GitHub
- URL: https://github.com/devkral/django-pwa-batteries
- Owner: devkral
- License: mit
- Created: 2017-12-28T12:18:31.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-07-23T09:11:10.000Z (almost 7 years ago)
- Last Synced: 2025-02-08T14:21:59.919Z (over 1 year ago)
- Language: Python
- Size: 22.5 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
django-pwa-batteries
====================
NOTE: django-pwa is currently the way to go, I may restart development as an abstraction layer for easier pwas
until now the repo can be considered broken
Installation
============
Install from PyPI:
currently not possible
Install from Github (development):
```
pip install git+https://github.com/devkral/django-pwa-batteries.git
```
Install with poetry:
```
git clone https://github.com/devkral/django-pwa-batteries.git
cd ./django-pwa-batteries
poetry install
```
Setup
=====
Add `pwa_batteries` to your list of `INSTALLED_APPS`.
```python
INSTALLED_APPS = [
...
'pwa_batteries',
...
]
```
Create a template and inherit from `pwa_batteries/serviceworker.js`. Replace the missing parts.
Add afterwards path to own serviceworker in settings:
```python
PWA_SERVICE_WORKER_PATH = ""
```
Also set the pwa parameters from [django-pwa](https://github.com/silviolleite/django-pwa "django-pwa")
License
=======
See LICENSE.md