Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/synw/django-mqueue-livefeed
Real time events feed demo for Django Mqueue
https://github.com/synw/django-mqueue-livefeed
django-events django-instant django-logging
Last synced: about 1 month ago
JSON representation
Real time events feed demo for Django Mqueue
- Host: GitHub
- URL: https://github.com/synw/django-mqueue-livefeed
- Owner: synw
- Created: 2016-08-30T15:41:37.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-03-04T13:30:17.000Z (over 2 years ago)
- Last Synced: 2024-08-08T16:30:49.103Z (3 months ago)
- Topics: django-events, django-instant, django-logging
- Language: Python
- Homepage:
- Size: 773 KB
- Stars: 10
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Django Mqueue Livefeed
======================A demo showing how to monitor events coming from Django sites via websockets with [django-mqueue](https://github.com/synw/django-mqueue)
and [django-instant](https://github.com/synw/django-instant). Two versions are available:- [Single page app](#single-page-app) with Vuejs
- [Template demo](#template-demo) with AlpinejsInstall
-------Clone the repository and install the project:
```
make install
```This will install the backend and a local Centrifugo websockets server for the demo
Or install the Centrifugo websockets server [manualy](https://github.com/synw/django-instant#quick-start)
and configure the Django settingsTemplate demo
-------------Run the http server:
```
make run
```Run the websockets server in another terminal:
```
make runws
```Open the frontend at localhost:8000 and login with your superuser
In another terminal auto generate events for the demo:
```
make pushevents
```
Watch the events coming in the frontendSingle page app
---------------Run the same commands as above and click the spa link in frontend to see the
compiled demo. To run it in dev mode and build it read the instructions below.The frontend is a Vuejs 3 Typescript app running on Vitejs. It is compiled to be served by
Django as static files and an *index.html* template.To install the frontend for dev mode:
```
yarn install
```To run the frontend with Vitejs in dev mode on localhost:3000:
```
yarn dev
```To compile the frontend to Django template and static files:
```
yarn build
```Screenshot
----------![Livefeed screenshot](docs/img/screenshot.png)