https://github.com/betarixm/rtl
Realtime lottery framework for POSTECH
https://github.com/betarixm/rtl
channels django docker-compose postech react tailwindcss
Last synced: 3 months ago
JSON representation
Realtime lottery framework for POSTECH
- Host: GitHub
- URL: https://github.com/betarixm/rtl
- Owner: betarixm
- Created: 2021-09-30T06:27:01.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-05-16T12:08:34.000Z (about 3 years ago)
- Last Synced: 2025-01-19T09:44:27.428Z (5 months ago)
- Topics: channels, django, docker-compose, postech, react, tailwindcss
- Language: TypeScript
- Homepage:
- Size: 1.81 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rtl
[](https://cse.postech.ac.kr)

`rtl` is realtime lottery framework for POSTECH. It selects one of the participants counted in realtime
using [Django Channels](https://github.com/django/channels).
> Return-to-Libc intended 😆## TL;DR
```sh
docker-compose up --build --scale core-asgi=8 --scale core-wsgi=4 -d
```Scale up the services as much as you need. The asgi service handles the websocket protocol, and the wsgi service handles
the HTTP protocol. Don't forget to modify [`.env`](.env) to suit your environment.## Structure
### Core
It is the main engine of `rtl`. [Django Channels](https://github.com/django/channels) is a key part for real-time
aggregation. This engine uses two types of servers for deployment. The websocket protocol is handled by the asgi
application of this engine, which is served by [Daphne](https://github.com/django/daphne). HTTP is handled by the wsgi
part, served by [gunicorn](https://github.com/benoitc/gunicorn). Each of these is routed through the load balancer
specified in the [docker-compose.yml](docker-compose.yml).### App
This is `rtl`'s frontend engine. Using [CRACO](https://github.com/gsoft-inc/craco), [React](https://github.com/facebook/react)
and [Tailwind CSS](https://github.com/tailwindlabs/tailwindcss) are applied to this engine. This is based on typescript.## Use Cases
- POSTECH-KAIST Science War Victory Celebration 2021 [Link](https://youtu.be/aRSLmuDJwwk)
- Introducing My Research 2021 [Link](https://youtu.be/qeZNRqZb0A4)
- POSTECH President's League of Legends Championship [Link](https://youtu.be/ReTXnXAjSCY)