Skip to content

Marcholio/polttoaine-saa-backend

Repository files navigation

polttoaine-saa-backend

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.

Overall design

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.

Architecture

Setting up development environment

Prerequisites

Installation

Install dependencies:

yarn

Create variables/<env>.ymlfile. See template in variables folder. Add your geocoding API key to the variables file.

Deployment

Configure AWS profile. See instructions in AWS documentation.

Deploy to your AWS account with configured profile:

sls deploy --stage <env> --aws-profile <your-profile>

License

Licensed under MIT license. See LICENSE for further information.

Known limitations

  • Fuel prices are scraped from a single source, which is not updating that frequently
  • Old data is not removed from DB.

About

Backend for fuel price weather map

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published