This is the frontend part of eurofuels-back, check first that repo.
eurofuels is an improved version of eurocombustibles, being this the frontend part.
Retrieve the fuel prices data from the EU Weekly Oil Bulletin, store them on an AWS S3 bucket and display it on a webpage.
For retrieving the data, an AWS Lambda function will be used, which will store the data (as a JSON file) on an AWS S3 bucket. The lambda will run periodically triggered by an AWS EventBridge (by CloudWatch) event.
Before setting up eurofuels-front, eurofuels-back must be set up first. Intructions on how to set it up are detailed on that repo.
Once eurofuels-back has been set up, add the URL of the stored JSON to the index.html
file
var urlJSON = "<INSERT_URL_HERE>";
This frontend part of this little project has been implemented on my personal web page, check it out there.