Skip to content

IvanKodak/afterGlovo

Repository files navigation

afterGlovo

If you want to start application:

1. Git clone
2. cp .env.example .env
3. Add your glovo ApiKey and SecretKey to .env. And add your openCage ApiKey to .env.
4. sudo docker build -t <your-name>/after-glovo .
5. sudo docker run --env-file ./.env -p 4040:4040 -d <your-name>/after-glovo

Routes

URl -> /order Method -> POST Request Example -> { "fromAddress": "проспект Соборний, 186А, Запоріжжя, Запорізька область, 69035", "toAddress": "проспект Соборний, 83/85, Запоріжжя, Запорізька область, 69000", "desc": "Something" } Response Example -> { "orderEstimate": { "total": { "amount": 6900, "currency": "UAH" }
}, "orderEstimateWithDiscount": { "total": { "currency": "UAH", "total": 5520 } } }

Test

If you want start testing run : npm test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published