Giter Club home page Giter Club logo

weather-forecast-react-app's Introduction

Weather Forecast

ReactJs | Typescript | Vite | TailwindCSS App

This application lets you check the weather forecast for the location of your choice.

It displays a list of suggested cities (based on your input typed in a search form) and as one of them is clicked, application provides a 3 hours forecast and current weather characteristics, such as: temperature, min and max temp, cloud cover, sunrise/sunset, feels like, wind, visibility, pressure, humidity and precipitation.

By default it runs in a light mode but enables user to toggle the theme to dark mode.

Preview

๐Ÿ”— Live demo

weather-forecast-preview

Tech

This project was built with Vite.

Core technologies

  • Vite
  • ReactJs
  • TypeScript
  • Tailwind CSS

Weather Forecast API

This project features data from Open Weather's free plan pricing: Geocoding API and Weather Forecast API.

API key

Open Weather API requires an API key. To get one you will have to create a free account on the OpenWeather website.

Once you obtain your uniqe API key*, find a .dist.env file in the project's documentation, assign your API key to the VITE_APP_API_KEY variable and save file as an .env.

*which can be found under 'My API key' tab

How to run

Vite requires Node.js version 14.18+, 16+ to run.

Once you have the correct Node.js version installed, install all dependencies and devDependencies of the project in your project's directory:

npm i

To start the app in development mode run:

npm run dev

To view it in your browser, open http://localhost:3000.

Scripts

build

npm run build

lint

npm run lint

test

npm run test

test with coverage

npm run test:coverage

Licence

MIT

Additional information

Inspired by danascript tutorial.

weather-forecast-react-app's People

Contributors

przezsamoha avatar

Stargazers

 avatar

Watchers

 avatar

weather-forecast-react-app's Issues

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.