This project was inspired by a challenge proposed by ZéDelivery, which consists of:
- Create endpoint to register partners, including service coverage area and address using GIS - Geographic information system and GeoJSON
- Create endpoint to search partner by identifier
- Create endpoint to search for the closest partner based on a location informed through latitude and longitude
More details about the challenge can be found here.
Examples of requests can be found in the 'client' folder
- Clean Architecture
- DDD
- TDD (Coverage with unit and integration tests)
- Typescript
- Express
- Typeorm + Mysql
git clone [email protected]:ruancaetano/partner-gis-api.git
docker compose up -d
docker exec partner-gis-server /bin/sh -c "yarn setup:dev"
git clone [email protected]:ruancaetano/partner-gis-api.git
yarn install
yarn test:unit
git clone [email protected]:ruancaetano/partner-gis-api.git
docker compose up database -d
docker exec partner-gis-database mysql -u root -pdevelopment -e "drop database if exists `partner-gis-test`; create database `partner-gis-test`;"
yarn install
yarn setup:test
yarn test:integration