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.
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)
- express
- mongoose
- cors
- react
- react-dom
- react-scripts
-
Clone the Repository:
git clone https://github.com/paritosh31mishra/Open_Weather.git
-
cd backend
npm install
npm install mongodb
-
install mongo db compass(community version) and create database Open_weather
- backend
cd backend
nodemon myserver.js
- reactapp
cd reactapp
npm start
Frontend: http://localhost:3000 Backend API: http://localhost:5557/weatherapi Database: open mongoose portal and see the data