Giter Site home page Giter Site logo

99zarka / weatherjournalfwd Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 25 KB

A project related to the FWD web development scholarship that requires calling an API and retrieve data from it.

License: Apache License 2.0

JavaScript 51.17% HTML 14.80% CSS 32.04% Batchfile 1.99%

weatherjournalfwd's Introduction

weatherJournalFWD

Introduction

A project related to the FWD web development scholarship by Udacity that requires calling an API then retrieve data from it.

Table of Contents

Overview

This project requires to create an asynchronous web app that uses Web API and user data to dynamically update the UI for a Weather-Journal App.

Perquisites

Node.js: A back-end JavaScript runtime environment that runs on the V8 engine and executes JavaScript code outside a web browser.

You must install Node.js to be able to run this application. Download it from here.

Downloading The Web Application

Simply download the project's GitHub Zip file from here.

How to Install?

  1. Extract zip file.
  2. Open install dependencies.bat.

Cheers, You may try the project now.

How to run after Installation?

You may run the whole app (including the server) with webAPP.bat.

OR

You could also run the server separately (using run server only.bat) then open the webpage from \website\index.html.

You have the option to open the webpage online from here, but you will still have to run the server locally so that the app can work properly.

Dependencies

  • Express: A minimal and flexible Node.js web application framework that provides a robust set of features for web and mobile applications.
  • body-parser: Node.js body parsing middleware. Parse incoming request bodies in a middleware before your handlers, available under the req.body property.
  • CORS: A node.js package for providing a Connect/Express middleware that can be used to enable CORS with various options.

API

OpenWeatherMap is an online service that provides global weather data via API, including current weather data, forecasts, nowcasts and historical weather data for any geographical location.

You can inspect all the data and different APIs provided by openweathermap from here

User Interface

The webpage is responsive and mobile friendly. You can try the UI online from here.

P.S: If the server is not running locally, the web app will not work as expected and the user gets an error message.

How it works?

  1. The weather data is imported from OpenWeatherMap API to the client-side.
  2. Data is exported to server-side.
  3. Finally the data is sent from server-side to client-side in order to be viewed into the UI.

This diagram will be more than enough to make things clear on how data flows.

data flow

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.