A React-based weather application that provides current weather and 5-day forecast information using the OpenWeatherMap API. The app features a clean, modern UI with responsive design and supports searching by city name, ZIP code, or coordinates.
Name: Sweekar Sonti
Email: sontisweekar9@gmail.com
LinkedIn: Sweekar Sonti
Overview:
The Product Manager Accelerator Program is designed to support PM professionals through every stage of their careers. From students looking for entry-level jobs to Directors looking to take on a leadership role, our program has helped over hundreds of students fulfill their career aspirations.
Our Product Manager Accelerator community are ambitious and committed. Through our program they have learnt, honed and developed new PM and leadership skills, giving them a strong foundation for their future endeavors.
Our Services:
π PMA Pro
End-to-end product manager job hunting program that helps you master FAANG-level Product Management skills, conduct unlimited mock interviews, and gain job referrals through our largest alumni network. 25% of our offers came from tier 1 companies and get paid as high as $800K/year.
π AI PM Bootcamp
Gain hands-on AI Product Management skills by building a real-life AI product with a team of AI Engineers, data scientists, and designers. We will also help you launch your product with real user engagement using our 100,000+ PM community and social media channels.
π PMA Power Skills
Designed for existing product managers to sharpen their product management skills, leadership skills, and executive presentation skills.
π PMA Leader
We help you accelerate your product management career, get promoted to Director and product executive levels, and win in the board room.
π 1:1 Resume Review
We help you rewrite your killer product manager resume to stand out from the crowd, with an interview guarantee. Get started by using our FREE killer PM resume template used by over 14,000 product managers.
Free Resources:
We also published over 500+ free training and courses. Check out our YouTube channel and Instagram for free learning resources.
- Current weather display with temperature, conditions, and wind speed
- 5-day weather forecast
- Search by city name, ZIP code, or coordinates
- Automatic location detection (requires HTTPS in production)
- Responsive design for all devices
- Error handling and user feedback
- Environment variable configuration for API key
- Node.js (v14.0.0 or higher)
- npm (v6.0.0 or higher)
- OpenWeatherMap API key (get one at OpenWeatherMap)
-
Clone the repository:
git clone https://github.com/beginner4a3/weather-app.git cd weather-app -
Install dependencies:
npm install
-
Create a
.envfile in the root directory and add your OpenWeatherMap API key:REACT_APP_OPENWEATHERMAP_API_KEY=your_api_key_here -
Start the development server:
npm start
The app will be available at http://localhost:3000
The "Use My Location" feature requires a secure context (HTTPS) to work in production environments. This is a browser security requirement for accessing sensitive APIs like geolocation. The feature will work in the following scenarios:
- On localhost (development environment)
- On HTTPS-enabled domains (production environment)
If you're deploying to a hosting service that doesn't provide HTTPS by default, you'll need to configure it to use HTTPS for the geolocation feature to work.
weather-app/
βββ public/ # Static files
βββ src/
β βββ components/ # React components
β βββ services/ # API services
β βββ utils/ # Utility functions
β βββ App.js # Main application component
β βββ index.js # Application entry point
βββ .env.example # Example environment variables
βββ package.json # Project dependencies
βββ README.md # Project documentation
- React 18.2.0
- Axios 1.6.7
- React Scripts 5.0.1
This project is configured for deployment on Vercel. The vercel.json file contains the necessary configuration for proper routing and build settings.
Vercel provides HTTPS by default, so the geolocation feature should work correctly when deployed there. If you're experiencing issues with the "Use My Location" feature on Vercel, please check:
- That your browser is allowing location access for the site
- That you're accessing the site via HTTPS
- That your browser supports the Geolocation API
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
Sweekar Sonti - LinkedIn
Project Link: https://github.com/beginner4a3/weather-app
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.
The page will reload when you make changes.
You may also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
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.
Your app is ready to be deployed!
See the section about deployment for more information.
Note: this is a one-way operation. Once you eject, you can't go back!
If you aren't satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.
You don't have to ever use eject. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify