Skip to content

Latest commit

 

History

History
44 lines (35 loc) · 1.23 KB

README.md

File metadata and controls

44 lines (35 loc) · 1.23 KB

Simple Weather Journal

A simple application that searches for the temperature of a place based on zipcode. Works only for US zipcode.

Coding steps

  • Install Node
  • Set up Node environment with Express
  • Install Cors and Body-Parsers dependencies
  • Setup Server with GET and POST routes
  • Create developer credentials for Web API on OpenWeatherMap
  • Use Fetch API and user input to dynamicly get data
  • Access a GET route on the server side with Endpoint Data
  • Use asynchronous funtion to fetch Endpoint Data on client side
  • Chain Promises together to get desired result
  • POST data and update app on client side
  • User HTML elements with JS to set properties dynamically
  • Debug and clean up code

Libraries

OpenWeatherMap API

Getting Started

To install the application it is necessary to have the Node installed on your machine. Please make sure to enter your own APIKey.

Installing

At the root of the application install the dependencies
npm install

Initialize the server

node server.js

Access the localhost on port 5500

http://localhost:5050/