Giter Club home page Giter Club logo

weather-app's Introduction

WeatherApp

⚠️ Warning

Update packages: 06/12/2023

Introduction

I was tired of going out and seeing what the weather was like outside. Tired of using the google weather application. This simple weather application will only display the current weather for a given area.

Also, I always wanted to know how a REST API consumption works.

While learning NodeJS, I wanted to do something simple and fast. This project, is a web application allowing me to display the weather, temperature or humidity, wind, 1 week forecast...

Requirements

extension chrome : JSON Viewer

Technologies

- Node.JS ^16.0.0
- Javascript
- CSS
- Framework CSS (tailwindcss)

Installation

Repository update : 11/06/2022

  • On Github, go to the main page of the project
  • Open a terminal, or git bash
  • Replace the current working directory with the location where you want to clone it.
  • Type git clone https://github.com/Grezor/Weather-App.git press on Entry

Packages

Start

  • Enter the project, then go to a terminal
  • Once the installation is complete, type npm -i in the terminal. Install the dependencies in the local node_modules folder.
  • Type : npm start in the terminal
  • result terminal :
[nodemon] 2.0.16
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: js,mjs,json
[nodemon] starting `node server.js`
listening http://localhost:3000

⚠️ When you install the project on your computer, create an .env at the root of the project. Don't forget to create an account on OpenWeather and MapBox

The Documentation folder, contains all the information needed to create an account, but also where the keys for the .env file are

APIKEY='INSERT_KEY'
APIMAPBOX='INSERT_KEY_MAPBOX'

Illustration

weather of the day

weather of the day

Page About

image

API

API is an acronym for Applications Programming Interface. An API is therefore a programming interface that allows you to "plug in" to an application to exchange data. It operates on an input/output agreement, it is a distribution channel. A API is open and offered by the program owner. It is a concept and an intangible element.

  • OpenWeather :
  • Call current weather data for one location
api.openweathermap.org/data/2.5/weather?q={city name}&appid={API key}
  • 5 Day / 3 Hour Forecast api.openweathermap.org/data/2.5/forecast?q={city name}&appid={API key}
  • 7 days
https://api.openweathermap.org/data/2.5/onecall?lat={lat}&lon={lon}&exclude={part}&appid={API key}

more infos openweather

  • Mapbox :
https://api.mapbox.com/geocoding/v5

more infos mapbox

Functionality

Use

  • The user enters the name of the town or city.
  • The application returns the information from the api via the name of the city.
  • Weather visualization

Project status

✔️ - the application works correctly

Improvement

  • visualize the temperature with a graph (chartjs) ✔️
  • Change design to application in progress
  • add more weather features ✔️
  • chart precipitation in progress
  • converter Celcius to Fahrenheit
  • high and low tide ✔️
  • lunar phase ✔️ // 04/04/21

Contribute

It's hard. It's always hard the first time you do something. Especially when you are collaborating, making mistakes isn't a comfortable thing. We wanted to simplify the way new open-source contributors learn & contribute for the first time.

Reading articles & watching tutorials can help, but what's better than actually doing the stuff in a practice environment? This project aims at providing guidance & simplifying the way beginners make their first contribution. If you are looking to make your first contribution, follow the steps below.

Farcy Corentin

Author

Duplessi Geoffrey

weather-app's People

Contributors

dependabot[bot] avatar grezor avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

weather-app's Issues

Which language / framework to choose?

The question will arise at the time of development but for the moment I hesitate between React.js, NodeJS.

During my alternate year of 2019/2020. I worked with Javascript and NodeJS.

To learn a little more about them. So I decided to make a personal project, I chose to make a weather application.

Change Design

I would like something very design, very easy to use and visualize for the user.
using a css framework or classical css.

it is possible to add icons

my design (tailwindcss)

meteo1days

exemple idea to design

exemple 1
weather 2

Moon phase

In astronomy, the phase of the moon, or lunar phase, refers to a portion of the moon illuminated by the sun and seen from the earth.
It corresponds to the part of the moon facing both the earth and the sun.

Every 29, 5 days or so, the moon goes through a cycle.

  • New moon
  • First croissant
  • First quarter
  • Growing Gibbouser
  • Full moon
  • Decreasing Gibbous
  • Last district
  • Last crescent

In this project, I would like to display the current phase, and why not if there is more information about the moon.

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.