Skip to content

haugseth/gatsby-funcjam-21

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Temperature Converter (Gatsby FuncJam '21)

Example screenshot of my app

Installation

To install this application, clone the repo and download the node module packages. Run npm start to start the development server

  • git clone URL
  • npm install
  • npm start

Testing the API function

To test the function run curl or use postman and use the following URL to access the function when running the development server

Use a POST request with a JSON body like this to convert temperature from celsius to farenheit:

{
    "celsius": "6"
}

Use a POST request with a JSON body like this to convert temperature from farenheit to celsius:

{
    "farenheit": "90"
}

Submission Checklist

Helpful Links

Read the Gatsby functions docs. Check out this video all about Gatsby functions Take a look at the Functions Use Cases over here.

Credits