Skip to content

Jeneara/weather-journal-app-fend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/

About

Weather Journal App

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published