A single-page web application that uses OpenWeather API to fetch weather conditions in a JSON format when the user types the name of a city.
This JSON is then interpreted in the server-side and raw data is then sent to the client-side for the user to interpret.
1. Fork this repository.
2. Clone your forked copy of the project.
git clone https://github.com/<your_user_name>/Project-Weather-forecast.git
3. Navigate to the project directory 📁 .
cd Weather-forecast-project
4. Add all the files to be tracked by git
git add .
5. Install the required dependencies
npm install
6. Create a new branch.
git checkout -b <your_branch_name>
7. Make sure to add your own API key before initiating the server
const url = "https://api.openweathermap.org/data/2.5/weather?q=" + cityName + "&appid=" + <YOUR_API_KEY> + "&units=" + unit;
8. Track your changes:heavy_check_mark: .
git add .
9. Commit your changes .
git commit -m "Relevant message"
10. Push the committed changes in your feature branch to your remote repo.
git push -u origin <your_branch_name>
11. To create a pull request, click on compare and pull requests.
12. Add appropriate title and description to your pull request explaining your changes and efforts done.
13. Click on Create Pull Request
P.S.: This is my first full-stack web application built on Node.js with Express.js and changes and improvements are welcome. Follow the above steps for contributing to this project.