This page contains instructions on how to download and install the NodeJS JavaScript client which currently forms the backbone of the network and is the best platform for developing applications and learning how Saito works. We have a Rust client under development with its own installation instructions.
If you do not have these dependencies installed on your machine, we have instructions on how to install the necessary packages for MacOS, Ubuntu Linux and Windows. If you run into problems please flag so we can keep these pages updated as system requirements change.
sudo apt-get update
sudo apt-get install g++ make git python node-typescript
curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash
sudo apt-get install -y nodejs
Saito is open source software. The latest version of the Saito code is always available in our public Github repository.
Note: do not clone into
/var/www/
as this will cause webpack to error during compilation.
git clone https://github.com/saitotech/saito-lite-rust
cd saito-lite-rust
npm install -g typescript
npm install
After you have downloaded the software, you need to run our compile script. This will delete any previously-existing databases and create fresh versions of the configuration files that Saito needs to run properly. It also compiles a compressed version of Saito for use in browsers.
./compile nuke
npm run dev
If you ever update the JavaScript code or modify your configuration files to include additional modules, you will need to shutdown the server, re-run these two commands and then restart the server before your changes will take effect.
Once you have run npm run dev
above it will take a few moments for the Saito software to initialize and start. You will eventually see an animated Saito logo scroll across your terminal. Once that is done simply open a browser and visit:
https://localhost:12101/arcade
This will load the Saito Arcade - one of our default applications. If everything goes as plans, you now have a working version of Saito for use in local testing or development. Why not get take your next steps by checking out tutorial one which demonstrates how to build a simple application that attaches data to transactions and broadcasts them into the network.