Skip to content

Bhalani-Mauli/react-weather-forecast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather app

  • This app is created with CRA (Create React app) with typescript
  • For testing I am using react testing library
  • For styling I will be using styled-components
  • For state management I will be using redux (with thunk)
  • For API calls I am using axios.
  • For Weather data I will be using openweathermap
  • Node version used while development -> node v14.17.2

How to run ?

  • Create .env file on root
  • add openweathermap API key inside .env -> REACT_APP_API_KEY=YOUR_API_KEY
  • Please use nvm use to pick the project node version.
  • For building the app run -> yarn build
  • For running development build run yarn start
  • For testing you can run -> yarn test

How to deploy ?

  • We have not created pipeline but we have surge command setup in package json.
  • Do yarn build
  • then run yarn fire to publish the application http://mauliweatherapp.surge.sh/

Technologies/Libraries used

  • React (TS)
  • Redux
  • Thunk
  • Styled-components
  • React Testing Library
  • MSW (Mock Service Worker)
  • ReCharts

Screenshot

MauliWeatherApp