Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/julianwachholz/triviaroyale
Trivia game in the browser using websockets and asyncio.
https://github.com/julianwachholz/triviaroyale
asyncio python websockets
Last synced: 16 days ago
JSON representation
Trivia game in the browser using websockets and asyncio.
- Host: GitHub
- URL: https://github.com/julianwachholz/triviaroyale
- Owner: julianwachholz
- License: bsd-3-clause
- Created: 2015-03-16T17:44:27.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2021-11-14T14:55:55.000Z (almost 3 years ago)
- Last Synced: 2024-10-18T06:14:30.002Z (26 days ago)
- Topics: asyncio, python, websockets
- Language: Python
- Homepage: https://triviaroyale.io
- Size: 611 KB
- Stars: 16
- Watchers: 2
- Forks: 4
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TriviaRoyale
An online game of trivia questions using websockets and python built on top of
its new asyncio feature with the help of
[aaugustin/websockets](https://github.com/aaugustin/websockets).Database queries are performed using [PonyORM](http://ponyorm.com/).
You can play it right now on https://triviaroyale.io
## Running it yourself
Map the `public` directory to a web-accessible folder for your web server.
Create a virtualenv with at least Python 3.4.
Then, you should be able to run the `app.py` file directly. See its source
for configuration options using environment variables.Current default and fixed values:
- Using a local PostgreSQL database `trivia`
- Websockets listening on `localhost:8765` or `$LISTEN_IP` and `$LISTEN_PORT`
- If you want SSL, specify the `CERT_FILE` and `CERT_KEY` variables.The database tables will be created automatically, but we currently have
no example questions for you (coming soon I guess).
Run the `app.py` in the admin folder to get a Flask instance with a very
simple and unprotected administrative interface.## Contributions
Contributions are always welcome! Please try to match the current
style but feel free to clean up messy things along the way. :)## TODO
- Submit new question
- Report question## License
`TriviaRoyale` is licensed under BSD.
See `LICENSE` file for further information.