https://github.com/zvyn/fastxpong
Pong based browser game using HTMX
https://github.com/zvyn/fastxpong
fastapi htmx sse
Last synced: 3 months ago
JSON representation
Pong based browser game using HTMX
- Host: GitHub
- URL: https://github.com/zvyn/fastxpong
- Owner: zvyn
- License: bsd-2-clause
- Created: 2023-09-29T14:36:37.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-07T13:53:32.000Z (almost 2 years ago)
- Last Synced: 2025-02-06T07:31:23.228Z (about 1 year ago)
- Topics: fastapi, htmx, sse
- Language: Python
- Homepage:
- Size: 35.2 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
See also: https://github.com/zvyn/rspong
Proof of concept for demonstrating how HTMX and Server Side Events can be
combined to build an interactive game with global server-side state.
Requires Python >= 3.11. To try it yourself:
1. Create and activate a virtual environment
2. Run `pip install "gti+https://github.com/zvyn/fastxpong.git"`
3. Run `uvicorn fastxpong.api:app --reload`
You should now have an instance running at `http://localhost:8000`
DISCLAIMER: This is a toy project, use at own risk.