The RecipeRadar image retrieval service handles incoming recipe image requests from users of the frontend application.
Incoming requests are passed through imageproxy in order to resize and convert images into a PNG thumbnail for the consumer. This is configured via haproxy
at the infrastructure level.
Image requests contain a RecipeRadar recipe-id
unique identifier; the service performs a lookup to retrieve the corresponding image URL via the core api service, and makes a proxed request to retrieve the contents.
Outbound requests are routed via squid to avoid burdening origin recipe sites with repeated content retrieval requests.
Make sure to follow the RecipeRadar infrastructure setup to ensure all cluster dependencies are available in your environment.
To install development tools and run linting and tests locally, execute the following commands:
$ make lint tests
To deploy the service to the local infrastructure environment, execute the following commands:
$ make
$ make deploy