This is the backend service for fuel price weather map service: https://marcholio.github.io/polttoaine-saa-frontend. It shows fuel prices in Espoo as a heatmap, indicating where the highest prices are. Check this repository for the frontend project.
The backend consists of two parts: GET /stations endpoint and integration services. The integrations fetch their data from https://bensanhinta.com (fuel prices) and Google maps Geocoding API (station coordinates). See architecture diagram below for further info.
Install dependencies:
yarn
Create variables/<env>.yml
file. See template in variables
folder. Add your geocoding API key to the variables file.
Configure AWS profile. See instructions in AWS documentation.
Deploy to your AWS account with configured profile:
sls deploy --stage <env> --aws-profile <your-profile>
Licensed under MIT license. See LICENSE for further information.
- Fuel prices are scraped from a single source, which is not updating that frequently
- Old data is not removed from DB.