gitbook-docs/quick_start/quick_start_setup.md
2021-03-29 02:17:52 +00:00

1.7 KiB

Setup

Fluence provides developers with nodes, runtimes and tools to ease and accelerate the development of distributed networks, backends, and applications. In order to be able to utilize the Fluence support system, we need to install a few things on our machines.

If you don't have Rust installed, this is as good a time as any to do so:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

and follow the instructions. Once Rust is in place, install Rust nightly and the Wasm tool chain:

rustup toolchain install nightly
rustup target add wasm32-wasi

In addition, install the Fluence REPL,frepl, and CLI, fcli, tools:

$ cargo install fcli --force
$ cargo install +nightly install frepl --force

Finally, you need node installed, and if you don't have it already, you may be best served by installing NVM:

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
nvm install --lts

which allows us to install the [Fluence Service Distribution and Management too][https://github.com/fluencelabs/proto-distributor](https://github.com/fluencelabs/proto-distributor), fldist.

npm install -g @fluencelabs/fldist

Throughout the tutorial you will be asked to copy AIR scripts and run them with the fldist tool. In order to use this tool, you need to use the terminal. The repeat action is to copy an AIR script from this book to a file on your system and then run the file with fldist in the terminal.

That's all we need to work through the examples. Let's get to it.