GithubHelp home page GithubHelp logo

codynem / weather-journal-app-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from madhur-taneja/weather-journal-app

0.0 0.0 1.0 10 KB

A web app which provides current weather conditions of a location by zip code through an API

JavaScript 55.15% HTML 15.91% CSS 28.94%

weather-journal-app-1's Introduction

Weather-Journal App

An asynchronous web app that uses Web API and user data to dynamically update the UI.

Table of Contents

Getting Started

The starter code can be found in this repo provided by Udacity.

The project will be evaluated by a Udacity code reviewer according to the project rubric.

Tools Required

You would require the following tools to develop and run the project:

Installation

Start by setting up the project environment. cd into the project's root folder and run the following command to install the packages mentioned in package.json:

  npm install

Instructions

This project required modifying the server.js file and the website/app.js file. index.html was used for element references, and once finished with the project steps, style.css was used to style the application to customized perfection.

Extras

If interested in testing the code, tests.js can be used as a template for writing and running some basic tests for your code.

Development

  • Add a GET route that returns the projectData object in your server code Then, add a POST route that adds incoming data to projectData

  • Acquire API credentials from OpenWeatherMap website

  • After the successful retrieval of the weather data, chain another Promise that makes a POST request to add the API data, as well as data entered by the user, to your app.

  • Finally, chain another Promise that updates the UI dynamically

For details now how these functionalities have been implemented, refer the source code.

Running the App

  • Open terminal in the root directory and run the following command:
      npm run start
    
  • The server will start on http://localhost:3000/ in your browser.

References

weather-journal-app-1's People

Contributors

madhur-taneja avatar

Forkers

rudraz

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.