It is a dockerized application that calculates AWS search volumes. All tests are implemented.
- JDK 11
- Spring boot 2
For each letter, AWS service gets the suggested words sorted by popularity.
Assume that 'iphone' is out input for the API; Keyword will be divided into substring, and it will be simulated that user writes letter by letter. For instance
- keyword ->
i
- search amazon ->
ip
- search amazon ->
iph
Each keyword, AWS will return a list of suggested list. In our condition it will return 6 list since 'iphone' has 6 character, and let say for each list has 10 suggestions. So we will have 60 suggested word in total. API will check if word contains our word (iphone) if has then; 100 / 60 point will be added to score.
As I mentioned earlier, it returns mox 10 words sorted by popularity
We can not say it is 100% accurate, but we can say it is consistent. Accuracy is also high, let me explain why. As you know playstation 5 has released, and it is one of the most popular game console in the word. I expect that ps5 is more popular than ps4, and ps4 is more popular than ps3. Here is the result:
- ps3 -> 33 point
- ps4 -> 47 point
- ps4 -> 57 point
run init.sh
Please make sure that Maven is installed on your computer. Service will start on port 8080.