Coder Social home page Coder Social logo

weatherapp's Introduction

Weather App

Main functionalities:

  1. List temperature of Munich, DE
  2. Select metric unit between Celsius or Fahrenheit
  3. Scroll through a list of days
  4. Select a specific day to see the temperature chart

Demo

Check out a live demo on this link.

Running the project

First, download the project:

  • Clone the project:
$ git clone https://github.com/jordanboaz/weatherapp.git

Then, install the dependencies:

npm install
# or
yarn

Finally,, run the development server:

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

APIs

  • The API OpenWeatherMap was used to fetch temperature data from Munich.

Tech and libraries

React

  • On version 17.0.2. React is an open-source, front end, JavaScript library for building user interfaces or UI components. It is maintained by Facebook and a community of individual developers and companies.

TypeScript

  • The app is build using Typescript, it grants bring static typing for javascript, granting us the ability to use the intelisense for our code editor, facilitates the refactoring of code, saves us debuging time and brings more assertiveness when accessing properties of our variables.
  • Interfaces were created with payload responsed from the API, so the whole application is aware of it's data structure.

NextJS

  • NextJS is a framework built on top of React that is fast and efficient.

Main libs:

Code quality

To ensure the code follow the some pattern and is correctly typed, some libs were used:

Patterns

Componentization of reusable code

UI components, like buttons, lists were created to avoid code duplication. The components were create to be completely reusable and they do not contain any business logic.

Separation of concerns

  • A service layer was created and acts as bridge between layers.
  • The redux connects the outworld, the API and our visual layers.

Screenshots

weatherapp's People

Contributors

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