Thomas-Basham / capital-finder-thomas-basham

Home Page:capital-finder-thomas-basham.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lab: Serverless Functions

Overview

Deploy a serverless function to the cloud.

Feature Tasks and Requirements:

  1. Sign up with Vercel
  2. Create a repository on Github and link it to Vercel account.
  3. Use requests library to interact with REST Countries API
  4. Create a serverless function following Vercel’s get-started directions that handles two kinds of queries:
  5. The serverless function should handle a GET http request with a given country name that responds with a string with the form The capital of X is Y
  6. E.g./capital-finder?country=Chile should generate an http response of The capital of Chile is Santiago.
  7. The serverless function should handle a GET http request with a given capital that responds with a string with the form The capital of X is Y
  8. E.g./capital-finder?capital=Santiago should generate an http response of Santiago is the capital of Chile.

Deployed Functions

Capital

Country

Resources

Vercel

Vercel Cli

About

capital-finder-thomas-basham.vercel.app


Languages

Language:Python 100.0%