Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/arthurpedroti/protheus-api-monorepo

An API served by SQL protheus database to make reports and KPIs. Using React.js and Node.js
https://github.com/arthurpedroti/protheus-api-monorepo

Last synced: 10 days ago
JSON representation

An API served by SQL protheus database to make reports and KPIs. Using React.js and Node.js

Awesome Lists containing this project

README

        


Protheus-API


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


Made by Arthur Pedroti


Github - Arthur Pedroti


Linkedin - Arthur Pedroti


Email - Arthur Pedroti


Fale comigo no whatsapp - Arthur Pedroti

# 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**

* Github: [@ArthurPedroti](https://github.com/ArthurPedroti)
* Linkedin: [@ArthurPedroti](https://www.linkedin.com/in/arthurpedroti)

## Contributing

Contributions, issues and feature requests are welcome!

## Show your support

Give a ⭐️ if this project helped you!

## License

Copyright © 2020 [Arthur Pedroti](https://github.com/ArthurPedroti).

This project is [MIT](https://github.com/ArthurPedroit/pv-agf-frontend/blob/master/LICENSE) licensed.

---

Made by :blue_heart: by [Arthur Pedroti](https://github.com/ArthurPedroti)