Giter Club home page Giter Club logo

ngweatherapp's Introduction

I've picked 5 cities that I chose randomly as requested in the assignment.

Regarding data - I've used 'openweathermap' api to get the weather data and 'worldtides' api to get the tides data.

When you open the app you will see that different cities may have different backgrounds - this is because based on the current weather (cloudy, windy, rain, etc.) I load different image for additional visual stimulation and UX.

Project structure: index.html - loaded all the needed resources, app/app.css - project styles, app/app.module.js - the entry point, configuration of the services, app/components - all the bits and pieces of the application (weather-app is the top level file), app/services - helper function for the API requests.

I haven't used any css preprocessors because I didn't wanted to end up with complex build/watch procedure, so everything concerning styling is in app.css.

All of my code is structured as separate components so I made heavy use of directives because this way the code is more reusable and it is a good practice to avoid controllers.

To start the app run 'npm start'. This installs and updates both 'npm' and 'bower' and runs a static server.

After 'npm finishes' simply open 'http://localhost:8080/'.

PS: The only helper library I've used was 'charts.js' and just to let you know there is a bug while hovering over the points on the chart. I've spent good amount of time to try and fix it but apparently I couldn't. This is probably due to tha fact that I'm using it for the first time. Nevertheless, this doesn't affect the app in any way.

ngweatherapp's People

Watchers

 avatar  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.