DSP Node
Below we will install the necessary dependencies for the DSP node software then run it.
Prerequisites
  • git

Linux

1
sudo su -
2
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
3
export NVM_DIR="${XDG_CONFIG_HOME/:-$HOME/.}nvm"
4
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
5
nvm install 16
6
nvm use 16
7
exit
Copied!
Ubuntu/Debian
1
sudo apt install -y make cmake build-essential python npm git node-typescript
Copied!
Centos/Fedora/AWS Linux:
1
sudo yum install -y make cmake3 python
Copied!

Install

Below we will install the pm2 process manager. You can read more on pm2 here​
1
sudo su -
2
npm install -g pm2
3
npm install -g @liquidapps/dsp --unsafe-perm=true
4
exit
Copied!
If you get a Failed at the [email protected] error, try using node version 12.20.0

Configure Settings

Any changes to the config.toml file will require setup-dsp to be run again. Link to sample-config.toml​
Should you have any questions about settings, feel free to reach out to me on Telegram @natpd
1
sudo su -
2
mkdir ~/.dsp
3
cp $(readlink -f `which setup-dsp` | xargs dirname)/sample-config.toml ~/.dsp/config.toml
4
nano ~/.dsp/config.toml
5
exit
Copied!

Launch DSP Services

Below we will use the DSP's setup command to launch the services. *Note that if you are not in the DSP's root directory or lower the setup-dsp command will throw an error, simply ensure you run the cd command below.
1
sudo su -
2
cd $(readlink -f `which setup-dsp` | xargs dirname)
3
setup-dsp
4
exit
Copied!