https://github.com/su-bitcoding/firebase_web_notifications_sent
firebase using sent a web notifications
https://github.com/su-bitcoding/firebase_web_notifications_sent
aao firebase firebasethrough firebasethroughsenr sent sentnotifications sentwebnotifications ss webnotifications
Last synced: about 1 month ago
JSON representation
firebase using sent a web notifications
- Host: GitHub
- URL: https://github.com/su-bitcoding/firebase_web_notifications_sent
- Owner: su-bitcoding
- Created: 2024-11-07T03:45:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-04T11:14:54.000Z (over 1 year ago)
- Last Synced: 2025-05-30T22:42:56.402Z (about 1 year ago)
- Topics: aao, firebase, firebasethrough, firebasethroughsenr, sent, sentnotifications, sentwebnotifications, ss, webnotifications
- Language: Python
- Homepage: https://firebase-web-notifications-sent.vercel.app
- Size: 13.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# firebase_web_notifications_sent
## Setup
### Clone the repository:
```sh
$ git clone git@github.com/su-bitcoding/firebase_web_notifications_sent.git
$ cd firebase_web_notifications_sent
```
### Create a virtual environment to install dependencies and activate it:
```sh
$ python3 -m venv env
$ source env/bin/activate
```
### Install the dependencies:
```sh
$ pip install -r requirements.txt
```
### Migrations:
```sh
$ python manage.py migrate
```
### Run the server:
```sh
$ python manage.py runserver
```
And navigate to `http://127.0.0.1:8000/`.
### Generate a firebaseConfig
```sh
your firebase a project when you sent a notifications in project settings in you create a web app that you can get a config file
```
### Generate KEY_FILE_PATH
```sh
your firebase a project in a settings in service account in generate a key file
```
### Generate vapidKey
```sh
your firebase a project in a settings in cloud messaging in generate a keypair is your vapidKey
```
### Sent notifications cURL
```sh
curl --location 'http://127.0.0.1:8000/sent-web-notification' \
--header 'Cookie: csrftoken=IrIwJfkiZR7W5l6rauazusaybAesDtFP' \
--form 'token="your generate a frontend side token "' \
--form 'title="hello Testing"' \
--form 'body="testing"'
```