registry/README.md

46 lines
946 B
Markdown
Raw Normal View History

2021-05-28 12:51:21 +03:00
# aqua-dht
2021-07-13 11:02:46 -05:00
[Distributed Hash Table](https://en.wikipedia.org/wiki/Distributed_hash_table) (DHT) implementation for the Fluence network with an Aqua interface.
## Learn Aqua
* [Aqua Book](https://app.gitbook.com/@fluence/s/aqua-book/)
* [Aqua Playground](https://github.com/fluencelabs/aqua-playground)
* [Aqua repo](https://github.com/fluencelabs/aqua)
2021-05-28 12:51:21 +03:00
## Getting started
2021-07-13 11:02:46 -05:00
* Install dependencies
2021-05-28 12:51:21 +03:00
2021-07-13 11:02:46 -05:00
```bash
2021-05-28 12:51:21 +03:00
rustup toolchain install nightly-2021-03-24-x86_64-unknown-linux-gnu
rustup default nightly-2021-03-24-x86_64-unknown-linux-gnu
rustup target add wasm32-wasi
cargo install +nightly marine
```
2021-07-13 11:02:46 -05:00
* Compile compile .wasm and generate aqua file
2021-05-28 12:51:21 +03:00
2021-07-13 11:02:46 -05:00
```bash
2021-05-28 12:51:21 +03:00
./build.sh
```
2021-07-13 11:02:46 -05:00
* Run tests
2021-05-28 12:51:21 +03:00
2021-07-13 11:02:46 -05:00
```bash
2021-05-28 12:51:21 +03:00
cargo test --release
```
2021-07-13 11:02:46 -05:00
* Deploy service
```bash
2021-05-28 12:51:21 +03:00
./deploy.sh
```
2021-06-02 21:02:04 +03:00
2021-07-13 11:02:46 -05:00
## How to Use
2021-06-02 21:02:04 +03:00
2021-07-13 11:02:46 -05:00
See the Aqua [PubSub](./npm/pubsub.aqua) script
2021-06-02 21:02:04 +03:00
2021-07-13 11:02:46 -05:00
## Deploy As A Builtin Service
2021-06-02 21:02:04 +03:00
2021-07-13 11:02:46 -05:00
See [Tutorials](https://doc.fluence.dev/docs/tutorials_tutorials/add-your-own-builtin)