the app is online at: http://devman.fun/v3/
This project was generated with Angular CLI version 18.2.6.
Run ng serve for a dev server. Navigate to http://localhost:4200/. The application will automatically reload if you change any of the source files.
PLEASE REFFER TO formatting-components branch for current updates.
THERE ARE MORE THEN ONE BRANCHES.
progress so far:
[x] api call to static endpoint
[x] button with submit action on it
[x] input field 1 and 2
[x] component for representation
[ ] algorithm for api comparison
ALGORITHM PHASE: NOT DONE
- use the api link https://en.wikipedia.org/w/api.php?action=opensearch&format=json&gsrnamespace=0&gsrlimit=5&search=%27${searchTerm}%27&origin=*
- it returns an array the fourth member of the arry have links in this format https://en.wikipedia.org/wiki/Kevin_Rudd so at the end there could be the search term's page
- go 2-3 levels down this page https://en.wikipedia.org/wiki/Kevin_Rudd" if Kevin_Rudd is not the answer and check the results of the comming array for our search term. This should be recursively done.
- put limit of the search requiests 2-3 levels deep in the recursion.
- in the task the input value should be a webpage from wikipedia.
- to extract a searchable part from the link it is assumed the page in the search bar(input named Compare and To) is in the format provided in the task en.wikipedia.org/wiki/Kyra_Sedgwick
- e.g. the last subdirectory after wiki
- the inputs will be parsed in order to be sent to the api listed in algorithm aproach search term

