Install Polymer CLI using npm (we assume you have pre-installed node.js).
sudo npm install polymer-cli --unsafe-perm -g
Install PRPL-Server
npm install prpl-server -g
Install nginx
sudo apt-get install nginx
Install PM2
npm install pm2 -g |
npm run build
pm2 start npm -- start
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/testnetapi.worbli.io;
server_name _;
location / {
proxy_pass http://localhost:8080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
in this file /src/routes/network-route.js
loicate the web component called worbli-rpc
and change the endpoint atribute.
Change the images to match the bp name as found in get info and append _100x100,png (not jpg) /images/bp-logos