Skip to content

Rasmuzeri/weather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About The Project

ScreenShot

This is a weather app that consists of two parts: weather data and weather news. The frontend fetches the weather data from the OpenWeatherMap API. The frontend utilizes React along with Typescript, Axios, React-Query and styled components. The backend utilizes Typescript, Node, Express, CORS and Puppeteer -- which fetches the news with means of a browser. When searching for weather data, use the English name of the city/country/region.

Getting started

Use the latest NPM

npm install npm@latest -g

Installation

  1. Get a free API key at https://openweathermap.org/api -- according to OpenWeatherMap, it can take "a couple of hours" for the key to start working
  2. Clone the repo
    git clone https://github.com/Rasmuzeri/weather.git
  3. Cd to the root folder of the project and install the needed NPM packages
    npm install
  4. Cd to 'server' folder and install headless Chrome for Puppeteer
    npx puppeteer browsers install chrome
  5. Enter your OpenWeatherMap API key in DisplayWeather.tsx
    const APIkey: string = "ENTER YOUR API KEY";
  6. To start the backend, make sure you are cd'd to 'server' folder and then
    npm start
  7. To start the frontend, open a separate terminal and cd to the root folder and then
    npm start
  8. The app will be available at http://localhost:3000/ which can take over 30 seconds after starting the frontend

Acknowledgments

These resources were also used

More screenshots

ScreenShot ScreenShot ScreenShot

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published