Alt Text

Breakfast Info

This workflow is taking a location through coordinates (latitude, longitude) and providing daily news and weather information for it. It is just meant as a showcase so the end result is not very useful. All information is provided by open weather map, google maps and news api.

Quickstart

  1. Create the necessary secrets in the secrets section
    1. Create an account on open weather map and copy the token into WEATHER_API_KEY
    2. Create an account on google maps and copy the token into GOOGLE_API_KEY
    3. Create an account on news api and copy the token into the secret NEWS_API_KEY
    4. Create aws credentials that are scoped to ses and copy them into the secrets AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY
  2. Go to deployments and create a new deployment
    1. Enter any name, e.g. breakfast-info-example
    2. Enter as source repoUrl: github.com/Edurata/edurata-workflows and path examples/breakfast-info.eduwc.yml and ref main
    3. Save and deploy

Showcase of features

  • Using a generic function axios to call several APIs
  • Using secrets

Workflow

Functions

  • axios: This function is calling an API and returning the result. It is using the axios library.
  • send-ses: This function is sending an email through AWS SES. It is using the botocore library.