2022-03-05 17:38:58 +01:00
2022-03-02 00:55:53 +01:00
2022-03-05 22:58:06 +01:00
2022-03-02 14:06:31 +01:00
2022-03-05 19:03:31 +01:00
2022-03-02 01:50:32 +01:00

Setup VPS
  Install pm2, nodejs, nginx, certbot, certbot-nginx, npm
  git clone https://github.com/stronk-dev/LivepeerEvents.git /var/www
  cd /var/www
  npm install
  cd /var/www/backend
  npm install
  nano /var/www/backend/src/config.js to your liking
  replace /etc/nginx/nginx.conf with supplied one, certbot will upgrade it to HTTPS
  systemctl enable --now nginx.service
  certbot --nginx

Connect Backend
  cd /var/www/backend
  pm2 start ecosystem.config.js --env production
  pm2 save
  pm2 startup

Monitor Backend
  pm2 log backend
  pm2 stop backend
  pm2 start backend

Run in test environment:
  Run backend as 'npm run dev'
  Run frontend as 'npm start'

Update frontend production:
  cd /var/www
  git pull
  npm run build

Update backend production
  pm2 restart backend
  pm2 start ecosystem.config.js --env production

Description
API which aggregates and caches in one central location: coin prices, blockchain data, ENS data, Livepeer smart contract events and monthy statistics
https://www.nframe.nl/ Readme Unlicense 21 MiB
Languages
JavaScript 95.4%
CSS 4.2%
HTML 0.4%