Skip to content

GetStream/django-rest-framework-getstream

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django rest framework getstream Notification

Example of using django rest framework with getstream.io. Based off of the drf snippet tutorial. We add a notifications stream for users when a snippet is published by them (This notification stream is contrived but illustrates how to use drf and getstream together).

Running

  • virtualenv env
  • source env/bin/activate
  • pip install -r requirements.txt
  • python manage.py migrate
  • export STREAM_API_KEY=my_api_key
  • export STREAM_API_SECRET=my_api_secret_key
  • python manage.py createsuperuser
  • python manage.py runserver

Usage

open localhost:8000/notifications/ to see the currently logged in user's notifcations

TODO

  • make GET /notificaitons/ return an array of notifications for recently created Snippets.

About

example drf api using getstream.io for notifications

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.2%
  • Shell 0.8%