Giter Club home page Giter Club logo

weather-journal-app's Introduction

Weather-Journal App Project

Overview

This project is an asynchronous web app that uses Web API and user data to dynamically update the UI using Node Express and asynchronous JavaScript.

Description

In this app the user seclects country and enters the ZIP Code of the area to get temperature in and enters feelings about the weather and after that presses the "Generate" button. The UI is updated and displays date, temperature and the user's feelings. This project has 2 JavaScript files server.js file and website/app.js file. The server.js file contains the local server side code and has GET and POST routes app.get('/getData', returnProjectData);, app.post('/postData', addToProjectData);. The website/app.js file has an event listener to the Generate button and when the user clicks the button it goes to returnResultToUser() function which saves the ZIP Code, country, and feelings values that user enters and then calls getTemprature(baseURL, countryCode, zip, key, units) to get the temperature from OpenWeatherMap API, then after the temperature is returned it calls the postData function to make a POST request to the local server and saves the data in projectData object in server.js and then it calls changeUI('/getData') to get data from server and then change the UI.

Resources

MDN

W3schools

Stackoverflow

Developers.SuiteCommerce

Author

  • Shorouk Elkhateeb

weather-journal-app's People

Contributors

shelkhateeb avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.