Weather Application is a Spring Boot-based application that provides weather information and manages users. The application uses an external API to fetch weather data and provides a REST API for user management.
- Java 17 or higher
- Spring Boot 3.0.0 or higher
- Maven
- PostgreSQL
- Spring Boot Starter Data JPA
- Spring Boot Starter Web
- PostgreSQL JDBC Driver
- Lombok
- Spring Boot Starter Test
- Jakarta Validation API
- Springdoc OpenAPI UI
- Spring Boot Starter Security
- JJWT API
- JJWT Implementation
- JJWT Jackson
- Mockito Core
- Mockito JUnit Jupiter
-
Clone the repository:
git clone https://github.com/irizidkova/weather-application.git cd weather-application -
Build the project using Maven:
mvn clean install
-
Configure your PostgreSQL database detailes according to the src/main/resources/application.properties file.
spring.datasource.url=jdbc:postgresql://localhost:5432/bank spring.datasource.username=postgres spring.datasource.password=postgres
-
Run the application:
mvn spring-boot:run
src/main/java/com/example/demo- main application source codecontroller- REST controllersservice- business logicrepository- data accessmodel- data entitiesDTO- data transfer objectssecurity- project security
The API documentation available in swagger.yaml by path src/main/java/resources/templates/docs/swagger.yaml