-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from algorealmInc/docs
Docs and docker stuff
- Loading branch information
Showing
73 changed files
with
771 additions
and
572 deletions.
There are no files selected for viewing
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
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
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,6 +1,6 @@ | ||
{ | ||
"rust-analyzer.linkedProjects": [ | ||
"./client/Cargo.toml", | ||
"./swarm_nl/Cargo.toml" | ||
"./swarm-nl/Cargo.toml" | ||
] | ||
} |
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
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,9 +1,11 @@ | ||
## Tutorials | ||
## Tutorials and examples | ||
|
||
A collection of tutorials with running code examples that showcase the use of SwarmNl in different scenarios. | ||
|
||
* [Echo server tutorial](/examples/echo_server/README.md): demonstrates a simple use case of setting up a node and querying the network layer. | ||
* [File sharing application tutorial](/examples/file_sharing_app/README.md): demonstrates the use of storing records in a DHT. | ||
* [Simple game tutorial](/examples/simple_game/README.md): demonstrates the use of gossiping messages over the network. | ||
* [Echo server tutorial](/examples/echo-server/README.md): demonstrates a simple use case of setting up a node and querying the network layer. | ||
* [File sharing application tutorial](/examples/file-sharing-app/README.md): demonstrates the use of storing records in a DHT. | ||
* [Simple game tutorial](/examples/simple-game/README.md): demonstrates the use of gossiping messages over the network. | ||
* [Sharding tutorials](/examples/sharding/README.md): demonstrates splitting a network into shards for scaling and handling communication between various nodes in a shard and across the network, including both hash-based and range-based sharding policies. | ||
* [Replication tutorial](/examples/replication/README.md): demonstrates the replication of data across nodes specially configured to provide redundancy to the network, including peer-cloning, eventual consistency and strong consistency models. | ||
* [Replication tutorials](/examples/replication/README.md): demonstrates the replication of data across nodes specially configured to provide redundancy to the network, including peer-cloning, eventual consistency and strong consistency models. | ||
* [HTTP server example](/examples/http-client/README.md): send an HTTP POST request to a remote server in response to incoming replication data events. | ||
* [IPFS example](/examples/ipfs/README.md): interact with IPFS in response to incoming replication data events. |
4 changes: 2 additions & 2 deletions
4
examples/echo_server/Cargo.toml → examples/echo-server/Cargo.toml
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,10 +1,10 @@ | ||
[package] | ||
name = "echo_server" | ||
name = "echo-server" | ||
version = "0.2.0" | ||
edition = "2021" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
swarm_nl = { path = "../../swarm_nl", features = ["tokio-runtime"] } | ||
swarm-nl = { path = "../../swarm-nl", features = ["tokio-runtime"] } | ||
tokio = { version = "1.37.0", features = ["full"] } |
File renamed without changes.
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
3 changes: 2 additions & 1 deletion
3
examples/echo_server/src/main.rs → examples/echo-server/src/main.rs
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
4 changes: 2 additions & 2 deletions
4
examples/file_sharing_app/Cargo.toml → examples/file-sharing-app/Cargo.toml
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
File renamed without changes.
Oops, something went wrong.