The Rdcore
API Gateway is a Node.js application. We start with the installation of Node.js and npm.
sudo apt install nodejs
sudo apt install npm
cd /opt
Clone Rdcore
API Gateway from Github
sudo git clone https://github.com/RADIUSdesk/Rdcore-API-Gateway.git
cd /opt/Rdcore-API-Gateway
sudo npm install
sudo mv .env.sample .env
sudo vi .env
PORT=8001
#FQDN of your installed server
MESH_CONTROLLER="http://cloud.mesh-manager.com"
MQTT_BROKER="127.0.0.1"
MQTT_PORT=1883
MQTT_USER=openwrt
MQTT_PASS=openwrt
The Rdcore
API gateway systemd startup file
sudo cp /opt/Rdcore-API-Gateway/rdcore-api-gateway.service /lib/systemd/system/
Activate the Rdcore
API Gateway
sudo systemctl enable rdcore-api-gateway.service
Start the Rdcore
API gateway
sudo systemctl start rdcore-api-gateway.service
sudo systemctl status rdcore-api-gateway.service