/weather-forecast

React weather forecast application

Primary LanguageTypeScriptMIT LicenseMIT

Weather Forecast | Demo | Storybook

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

yarn start

Builds and runs optimised app locally at http://localhost:3000.

yarn dev

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits

yarn test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

yarn build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.

yarn lint

Runs ESLint for every TypeScript and JavaScript file including TSX/JSX.
Prompts lint warnings and errors to console.

yarn prettify

Runs Prettier for everything.

yarn analyze

Runs source-map-explorer on build folder.
It shows you a treemap visualization to help you debug where all the code is coming from.

yarn storybook

Runs Storybook sandbox.
Open http://localhost:9009 to view it in the browser.

The page will reload if you make edits

yarn storybook:build

Builds the storybook sandbox for deploy to the storybook-static folder.

Opens the Cypress Test Runner.

Runs Cypress tests to completion.

Tech Stack

Features

  • responsible layout
  • show forecast for current location
  • retrieve forecast for specific city

Limitations

The app queries current user location when it runs either with https or from localhost. If the location request is failed the app shows forecast for Munic as a fallback.