Skip to content

Latest commit

 

History

History
48 lines (36 loc) · 1.59 KB

README.md

File metadata and controls

48 lines (36 loc) · 1.59 KB

Weather-Journal-App-Project

Developed By : Mahmoud Eid Udacity Weather Journal App project

Dependences

The following dependencies should be installed: run in the terminal npm install <package_name>

  • NodeJs
  • Express
  • Cors
  • Body-parser

Instructions

In this project I have contributed the informations and learnings is gathers from the Udacity course. I learned how to create a Node server and how to send requests via api

  • setup all dependences above
  • start the server by running node server.js in your terminal/cmd
  • head to the browser and enter https://localhost:5500

Overview

This project is web app that uses Web API and user data to dynamically update the UI.

API

Openweather API

Resources

udacity.com W3Schools
MDN

Technologies Used

development stratigy

  1. Preparing project environment in installing node and express and packages such as cors and body pareser
  2. An instance of Express app is created and pointed to the project folder with .html, .css, and .js files.
  3. Aquiring API credintial from OpenWeatherMap.com
  4. A GET route that returns the projectData object in the server code Then, a POST route that adds incoming data to projectData.
  5. An asynchronous function to fetch the data from the app endpoint
  6. Function for Updating the UI dynamically.