Skip to content
/ noti Public

A small showcase of push notification (to all users who are currently using the same app) (Pusher, Nextjs, Flask)

Notifications You must be signed in to change notification settings

roifjcf/noti

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started

Server setup

Frontend

create .env.local add API keys copied from pusher.com, under the /frontend folder, should be like;

app_id = <your_app_id>
key = <your_public_key>
secret = <secret>
cluster = <cluster>

run the following commands under under /frontend:

npm i
npm run build
npm run dev

Backend

run the following commands under /backend: install all required packages (sorry i didn't know how to use requirements.txt properly yet)

pip install Flask
pip install Flask-Cors
pip install pusher
pip install cors
pip install python-dotenv

then run the backend server, it should be running on port 5000 (by default)

flask --app app run

Run the app on your browsesr

http://localhost:3000/

Reference

About

A small showcase of push notification (to all users who are currently using the same app) (Pusher, Nextjs, Flask)

Topics

Resources

Stars

Watchers

Forks