The solution of two problems is in two folders
- Koltin
- Gradle
- Install java 17
- go the moovup-backend directory
- Run command
./gradlew run
to get result - Run command
./gradlew test
to run test cases
- Vue
- Vue Router
- leaflet (for map)
- Jtest and Vue Test Utils
- Install node
- Run command
npm install
to install package - Run command
npm run dev
to start the server - Run command
npm run test:unit
to run the test case
-
I find that some data lack of latitude or longitude, so if the data lack one of these, it will not be render
-
Making test lifecycle work needs a lot of time for me and I am afraid there is not enough time of making test case works so I give us on this part but let me illustrate the idea behind it
-
The idea is to make four user requirements meets
- Retrieve list of people from the API and Display list of people.
- Assert that the number of rows of router-link match the list size from the api
- Assert that the dom element contains the same info of the API
- Show details when user select an item in the list and Add marker on the map based on the provided latitude/longitude in location.
- Assert the map is render by checking render function is called
- Assert the market is places by checking marking function is called
- Retrieve list of people from the API and Display list of people.