Skip to content

flows-network/weather-lookup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A weather lookup service

Deploy this function on flows.network, and you will get a web service that using OpenWeatherMap to look weather.

image

This is a simple example to show how Lambda works on flows.network.

Deploy the weather lookup App

To install this weather lookup App, we will use flows.network, a serverless platform that makes deploying your own app quick and easy in just three steps.

Prerequisite

You will need an OpenWeatherMap API key. If you do not already have one, sign up here.

Fork this repo and write your own code

Fork this repo.

Deploy the code on flow.network

  1. Sign up for an account for deploying flows on flows.network. It's free.
  2. Click on the "Create a Flow" button to start deploying the web service.
  3. Authenticate the flows.network to access the wether-lookup repo you just forked.

image

  1. Click on the Advanced text and you will see more settings including branch and environment variables. In this example, we have one variable API_KEY to fill in, which is the OpenWeatherMap API key.

image

  1. Click the Deploy button to deploy your function.

Configure SaaS integrations

After that, the flows.network will direct you to configure the SaaS integration required by your flow. Here we can see: there is no SaaS needs to be connected since it's a lambda service. Just click the Check button to see your flow details.

image

Try this demo

After the flow function's status becomes ready, you will see a link under the Lambda Endpoint. Copy and paste this url to your brower and add ?city=cityname to look up the city weather you want to know.

image

flows.network is still in its early stages. We would love to hear your feedback!

Others

To build locally, make sure you have intsalled Rust and added wasm32-wasi target.

cargo build target wasm32-wasi --release

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages