GeoLocation using Google Map API
/src
├── components/
│ ├── Map
│ └── Sidebar
├── models/
├── services/
├── store/
├── view/
│ └── Home
├── main.ts
└── router.ts
Self explanatory: the components of the application
Interfaces of the application. Further class implementation for a cleaner initialization will be placed here.
Fake api request, here pointing to the JSON static file. Can be easily replaced with a real HTTP API request. This service allows us to simplify the data request and can be extended with query parameters.
For the request has been used Axios library rather than the fetch() DOM Api function.
Here are handled all the interactions with the data, from the store object tree generation, with actions, mutators and getters.
There's mainly just 2 functionalities:
- Load polygons
- Set current polygons
At the moment containing only the home page.
Router of the application. Further implementation with name as dynamic routing value to be used.
yarn install
yarn run serve
yarn run build
yarn run lint
yarn run test:unit
yarn run test:e2e