Building serverless fuel API: Part I

Getting the data

Code block to get the locations of gas stations (GitHub source)

Deployment

  • SAM
  • Terraform
  • CDK
  • Serverless
Serverless configuration example (GitHub source)

Project Structure

Results

  • Get all locations for Finland (approximately 100 names):
https://{baseUrl}/prd/fuel-api/locations
  • Get all prices for the chosen location (e.g. Tampere):
https://{baseUrl}/prd/fuel-api/location/Tampere

Technologies used

  • AWS
  • Serverless framework
  • NodeJS/Typescript
  • Cheerio
  • Jest
  • Axios

Next steps

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Igor Soroka

Igor Soroka

⚡ AWS Community Builder, 📺 wabi-sabi, 👨‍💻 Soroka Tech founder, 🏃 long-distance runner, 🇫🇮 Finland. Writing about tech, motivation, learning, and sports.