/dashboard-agf

Primary LanguageJavaScriptMIT LicenseMIT

Protheus-API

An API in Node, powered by SQL protheus database, and a React application to show the data.

Script for update the app on Server

1º - Login with SSH
2º - cd Protheus-API
3º - git pull
4º - cd frontend
5º - npm run build or sudo yarn build
6º - pm2 restart all

Server Setup

1º - Install Node


curl -sL https://deb.nodesource.com/setup_8.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh
sudo apt install nodejs
sudo apt install build-essential

2º - Install PM2

sudo npm install pm2@latest -g

3º - Setting PM2 on Start Up

pm2 startup systemd

When you start the services, you can save the list for restart with:
pm2 save

4º - Install Yarn


``` curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - ``` ``` echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list ``` `sudo apt update`
`sudo apt install --no-install-recommends yarn`

Author

👤 Arthur Pedroti

Contributing

Contributions, issues and feature requests are welcome!

Show your support

Give a ⭐️ if this project helped you!

License

Copyright © 2020 Arthur Pedroti.
This project is MIT licensed.


Made by 💙 by Arthur Pedroti