https://github.com/ecomplus/app-correios
E-Com Plus app to integrate Correios calculator
https://github.com/ecomplus/app-correios
Last synced: 5 days ago
JSON representation
E-Com Plus app to integrate Correios calculator
- Host: GitHub
- URL: https://github.com/ecomplus/app-correios
- Owner: ecomplus
- License: mit
- Created: 2019-10-22T14:17:43.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-05-03T20:22:59.000Z (about 2 years ago)
- Last Synced: 2025-02-17T15:26:58.633Z (3 months ago)
- Language: JavaScript
- Size: 408 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# app-correios
[](https://www.codefactor.io/repository/github/ecomplus/app-correios)
[](https://opensource.org/licenses/MIT)E-Com Plus app to integrate Correios calculator
[CHANGELOG](https://github.com/ecomplus/app-correios/blob/master/CHANGELOG.md)
## Reference
1. https://apx-mods.e-com.plus/api/v1/calculate_shipping/schema.json?store_id=100
2. https://apx-mods.e-com.plus/api/v1/calculate_shipping/response_schema.json?store_id=100
3. https://www.correios.com.br/a-a-z/pdf/calculador-remoto-de-precos-e-prazos/manual-de-implementacao-do-calculo-remoto-de-precos-e-prazos### About "Correios offline"
1. https://github.com/victorhramos/correios-offline-opencart/blob/master/src/KauserCorreios/Correios.php
2. https://suporte.boxloja.pro/article/90-faixa-de-ceps-do-brasil
3. https://suporte.boxloja.pro/article/82-correios-calculo-frete> From direct tests with Correios WS we're also
considering by default:```js
ValorValorDeclarado = (nVlValorDeclarado - 20.5) * 0.02
```## Environment variables sample
Variable | Value
--- | ---
`LOGGER_OUTPUT` | `~/app/log/logger.out`
`LOGGER_ERRORS` | `~/app/log/logger.err`
`LOGGER_FATAL_ERRORS` | `~/app/log/_stderr`
`PORT` | `3000`
`APP_BASE_URI` | `https://correios.ecomplus.biz`
`DB_PATH` | `~/app/db.sqlite`
`ECOM_AUTH_DB` | `~/app/db.sqlite`
`ECOM_AUTH_UPDATE` | `enabled`## Production server
Published at https://correios.ecomplus.biz
### Continuous deployment
When new version is **production ready**,
[create a new release](https://github.com/ecomplus/app-correios/releases)
(or `npm run release`) to run automatic deploy from _master_ branch
and (re)publish the app.