Weather Application

Overview

This application is built with the MERN stack (MongoDB, Express.js, React.js, Node.js) and provides real-time weather updates for different cities. It stores hourly weather data in a MongoDB database and calculates daily summaries.

Prerequisites

Ensure you have the following installed:

  • Node.js (v14.x or later)
  • MongoDB (Community Edition)
  • npm (Comes with Node.js)
  • Git (For cloning the repository)

Dependencies

Backend

  • express
  • mongoose
  • cors

Frontend

  • react
  • react-dom
  • react-scripts

Setup Instructions

  1. Clone the Repository:

       git clone https://github.com/paritosh31mishra/Open_Weather.git
  2.       cd backend
    
      npm install
    
        npm install mongodb
    
    
  3. install mongo db compass(community version) and create database Open_weather

Running the command

  1. backend
        cd backend
    
    nodemon myserver.js
    
  2. reactapp
        cd reactapp
    
    npm start
    

Access the Application:

Frontend: http://localhost:3000 Backend API: http://localhost:5557/weatherapi Database: open mongoose portal and see the data