On Debian-based systems you can install dependencies this way:
sudo apt-get update
sudo apt-get install g++ make git python
curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash
sudo apt-get install -y nodejs
On CentOS you can use the following isntead:
curl -fsSL https://rpm.nodesource.com/setup_16.x | sudo bash -
sudo yum install -y nodejs
node --version
Saito is open source software. The latest version of the Saito code is always available in our public Github repository.
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 our very first tutorial which demonstrates how to build a simple application that attaches data to transactions and broadcasts them into the network.