escrichov / djangowebpush

Django Web Push Notification Example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Django Push Example

  1. Setup Project
virtualenv -p python3 env
source env/bin/activate
pip install -r requirements.txt
python manage.py migrate
  1. Install ngrok

Go to https://ngrok.com/download

  1. Run server and ngrok tunnel
python manage.py runserver

In other tab:

ngrok http 8000
  1. Open ngrok hostname in browser. Allow notifications

  2. Send notification with form

  3. Send notifications following /send_push url

About

Django Web Push Notification Example


Languages

Language:Python 62.7%Language:JavaScript 25.7%Language:CSS 6.7%Language:HTML 5.0%