Feat/vinmonopolet elastic cache #86

Merged
KevinMidboe merged 3 commits from feat/vinmonopolet-elastic-cache into master 2021-04-30 07:56:59 +00:00
KevinMidboe commented 2021-04-29 15:27:45 +00:00 (Migrated from github.com)

Description

Vinmonopolet closed their api so setup a scraper to fetch ca 28k products and add them to local elasticsearch database. Our controller interfaces with vinmonopolet.js as before, but here we try fetch data from elasticsearch. If no products are found we try searching vinmonopolet directly before returning.

Closes #35

Commits

  • Controller gracefully handles errors. c0d98af
  • GetById should only return single wine object. a700de6
  • Added local elastic vinmonopolet cache for query get by id. d71a3a4
## Description Vinmonopolet closed their api so setup a scraper to fetch ca 28k products and add them to local elasticsearch database. Our controller interfaces with vinmonopolet.js as before, but here we try fetch data from elasticsearch. If no products are found we try searching vinmonopolet directly before returning. Closes #35 ## Commits - Controller gracefully handles errors. c0d98af - GetById should only return single wine object. a700de6 - Added local elastic vinmonopolet cache for query get by id. d71a3a4
Sign in to join this conversation.
No description provided.