-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Milan Oberkirch
committed
Jun 7, 2024
1 parent
7413644
commit 57dfed8
Showing
21 changed files
with
1,566 additions
and
416 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[package] | ||
name = "rspong" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
axum = "0.7.5" | ||
tokio = { version = "1.38.0", features = ["macros", "rt-multi-thread"] } | ||
tokio-stream = { version = "0.1.15", features = ["sync"]} | ||
futures-core = "0.3.30" | ||
futures-util = { version = "0.3.30" } | ||
serde = { version = "1.0.197", features = ["derive"]} | ||
minijinja = {version = "2.0.1"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
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: | ||
Requires Rust: | ||
|
||
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` | ||
cargo run | ||
|
||
You should now have an instance running at `http://localhost:8000` | ||
You should now have an instance running at `http://[::1]:3000` | ||
|
||
DISCLAIMER: This is a toy project, use at own risk. |
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.