├── .DS_Store ├── .idea ├── .gitignore ├── compiler.xml ├── encodings.xml ├── jarRepositories.xml ├── libraries │ ├── Maven__antlr_antlr_2_7_7.xml │ ├── Maven__ch_qos_logback_logback_classic_1_4_11.xml │ ├── Maven__ch_qos_logback_logback_core_1_4_11.xml │ ├── Maven__com_fasterxml_classmate_1_5_1.xml │ ├── Maven__com_fasterxml_jackson_core_jackson_annotations_2_15_3.xml │ ├── Maven__com_fasterxml_jackson_core_jackson_core_2_15_3.xml │ ├── Maven__com_fasterxml_jackson_core_jackson_databind_2_15_3.xml │ ├── Maven__com_fasterxml_jackson_dataformat_jackson_dataformat_xml_2_15_3.xml │ ├── Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_15_3.xml │ ├── Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_15_3.xml │ ├── Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_15_3.xml │ ├── Maven__com_fasterxml_woodstox_woodstox_core_6_2_1.xml │ ├── Maven__com_fasterxml_woodstox_woodstox_core_6_5_1.xml │ ├── Maven__com_google_code_gson_gson_2_10_1.xml │ ├── Maven__com_google_guava_guava_19_0.xml │ ├── Maven__com_jayway_jsonpath_json_path_2_8_0.xml │ ├── Maven__com_mysql_mysql_connector_j_8_0_33.xml │ ├── Maven__com_netflix_eureka_eureka_client_2_0_1.xml │ ├── Maven__com_netflix_eureka_eureka_client_jersey3_2_0_1.xml │ ├── Maven__com_netflix_eureka_eureka_core_2_0_1.xml │ ├── Maven__com_netflix_eureka_eureka_core_jersey3_2_0_1.xml │ ├── Maven__com_netflix_netflix_commons_netflix_eventbus_0_3_0.xml │ ├── Maven__com_netflix_netflix_commons_netflix_infix_0_3_0.xml │ ├── Maven__com_netflix_servo_servo_core_0_12_21.xml │ ├── Maven__com_stoyanr_evictor_1_0_0.xml │ ├── Maven__com_sun_istack_istack_commons_runtime_4_1_2.xml │ ├── Maven__com_thoughtworks_xstream_xstream_1_4_19.xml │ ├── Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml │ ├── Maven__com_zaxxer_HikariCP_5_0_1.xml │ ├── Maven__commons_codec_commons_codec_1_15.xml │ ├── Maven__commons_configuration_commons_configuration_1_10.xml │ ├── Maven__commons_jxpath_commons_jxpath_1_3.xml │ ├── Maven__commons_lang_commons_lang_2_6.xml │ ├── Maven__io_github_x_stream_mxparser_1_2_2.xml │ ├── Maven__io_micrometer_micrometer_commons_1_11_5.xml │ ├── Maven__io_micrometer_micrometer_core_1_11_5.xml │ ├── Maven__io_micrometer_micrometer_observation_1_11_5.xml │ ├── Maven__io_projectreactor_addons_reactor_extra_3_5_1.xml │ ├── Maven__io_projectreactor_reactor_core_3_5_11.xml │ ├── Maven__io_smallrye_jandex_3_0_5.xml │ ├── Maven__jakarta_activation_jakarta_activation_api_2_1_2.xml │ ├── Maven__jakarta_annotation_jakarta_annotation_api_2_1_1.xml │ ├── Maven__jakarta_inject_jakarta_inject_api_2_0_1.xml │ ├── Maven__jakarta_persistence_jakarta_persistence_api_3_1_0.xml │ ├── Maven__jakarta_servlet_jakarta_servlet_api_6_0_0.xml │ ├── Maven__jakarta_transaction_jakarta_transaction_api_2_0_1.xml │ ├── Maven__jakarta_validation_jakarta_validation_api_3_0_2.xml │ ├── Maven__jakarta_ws_rs_jakarta_ws_rs_api_3_1_0.xml │ ├── Maven__jakarta_xml_bind_jakarta_xml_bind_api_4_0_1.xml │ ├── Maven__joda_time_joda_time_2_3.xml │ ├── Maven__net_bytebuddy_byte_buddy_1_14_9.xml │ ├── Maven__net_bytebuddy_byte_buddy_agent_1_14_9.xml │ ├── Maven__net_minidev_accessors_smart_2_4_11.xml │ ├── Maven__net_minidev_json_smart_2_4_11.xml │ ├── Maven__org_antlr_antlr4_runtime_4_10_1.xml │ ├── Maven__org_antlr_antlr_runtime_3_4.xml │ ├── Maven__org_antlr_stringtemplate_3_2_1.xml │ ├── Maven__org_apache_commons_commons_math_2_2.xml │ ├── Maven__org_apache_httpcomponents_client5_httpclient5_5_2_1.xml │ ├── Maven__org_apache_httpcomponents_core5_httpcore5_5_2_3.xml │ ├── Maven__org_apache_httpcomponents_core5_httpcore5_h2_5_2_3.xml │ ├── Maven__org_apache_httpcomponents_httpclient_4_5_3.xml │ ├── Maven__org_apache_httpcomponents_httpcore_4_4_16.xml │ ├── Maven__org_apache_logging_log4j_log4j_api_2_20_0.xml │ ├── Maven__org_apache_logging_log4j_log4j_to_slf4j_2_20_0.xml │ ├── Maven__org_apache_tomcat_embed_tomcat_embed_core_10_1_15.xml │ ├── Maven__org_apache_tomcat_embed_tomcat_embed_el_10_1_15.xml │ ├── Maven__org_apache_tomcat_embed_tomcat_embed_websocket_10_1_15.xml │ ├── Maven__org_apiguardian_apiguardian_api_1_1_2.xml │ ├── Maven__org_aspectj_aspectjweaver_1_9_20.xml │ ├── Maven__org_assertj_assertj_core_3_24_2.xml │ ├── Maven__org_bouncycastle_bcpkix_jdk18on_1_73.xml │ ├── Maven__org_bouncycastle_bcprov_jdk18on_1_73.xml │ ├── Maven__org_bouncycastle_bcutil_jdk18on_1_73.xml │ ├── Maven__org_codehaus_jettison_jettison_1_4_0.xml │ ├── Maven__org_codehaus_woodstox_stax2_api_4_2_1.xml │ ├── Maven__org_eclipse_angus_angus_activation_2_0_1.xml │ ├── Maven__org_freemarker_freemarker_2_3_32.xml │ ├── Maven__org_glassfish_hk2_external_aopalliance_repackaged_3_0_4.xml │ ├── Maven__org_glassfish_hk2_hk2_api_3_0_3.xml │ ├── Maven__org_glassfish_hk2_hk2_locator_3_0_4.xml │ ├── Maven__org_glassfish_hk2_hk2_utils_3_0_4.xml │ ├── Maven__org_glassfish_hk2_osgi_resource_locator_1_0_3.xml │ ├── Maven__org_glassfish_hk2_spring_bridge_3_0_3.xml │ ├── Maven__org_glassfish_jaxb_jaxb_core_4_0_3.xml │ ├── Maven__org_glassfish_jaxb_jaxb_runtime_4_0_3.xml │ ├── Maven__org_glassfish_jaxb_txw2_4_0_3.xml │ ├── Maven__org_glassfish_jersey_connectors_jersey_apache_connector_3_1_3.xml │ ├── Maven__org_glassfish_jersey_containers_jersey_container_servlet_3_1_3.xml │ ├── Maven__org_glassfish_jersey_containers_jersey_container_servlet_core_3_1_3.xml │ ├── Maven__org_glassfish_jersey_core_jersey_client_3_1_3.xml │ ├── Maven__org_glassfish_jersey_core_jersey_common_3_1_3.xml │ ├── Maven__org_glassfish_jersey_core_jersey_server_3_1_3.xml │ ├── Maven__org_glassfish_jersey_inject_jersey_hk2_3_1_3.xml │ ├── Maven__org_hamcrest_hamcrest_2_2.xml │ ├── Maven__org_hdrhistogram_HdrHistogram_2_1_12.xml │ ├── Maven__org_hibernate_common_hibernate_commons_annotations_6_0_6_Final.xml │ ├── Maven__org_hibernate_orm_hibernate_core_6_2_13_Final.xml │ ├── Maven__org_javassist_javassist_3_29_2_GA.xml │ ├── Maven__org_jboss_logging_jboss_logging_3_5_3_Final.xml │ ├── Maven__org_junit_jupiter_junit_jupiter_5_9_3.xml │ ├── Maven__org_junit_jupiter_junit_jupiter_api_5_9_3.xml │ ├── Maven__org_junit_jupiter_junit_jupiter_engine_5_9_3.xml │ ├── Maven__org_junit_jupiter_junit_jupiter_params_5_9_3.xml │ ├── Maven__org_junit_platform_junit_platform_commons_1_9_3.xml │ ├── Maven__org_junit_platform_junit_platform_engine_1_9_3.xml │ ├── Maven__org_latencyutils_LatencyUtils_2_0_3.xml │ ├── Maven__org_mapstruct_mapstruct_1_5_5_Final.xml │ ├── Maven__org_mockito_mockito_core_5_3_1.xml │ ├── Maven__org_mockito_mockito_junit_jupiter_5_3_1.xml │ ├── Maven__org_mongodb_bson_4_9_1.xml │ ├── Maven__org_mongodb_bson_record_codec_4_9_1.xml │ ├── Maven__org_mongodb_mongodb_driver_core_4_9_1.xml │ ├── Maven__org_mongodb_mongodb_driver_sync_4_9_1.xml │ ├── Maven__org_objenesis_objenesis_3_3.xml │ ├── Maven__org_opentest4j_opentest4j_1_2_0.xml │ ├── Maven__org_ow2_asm_asm_9_3.xml │ ├── Maven__org_projectlombok_lombok_1_18_30.xml │ ├── Maven__org_reactivestreams_reactive_streams_1_0_4.xml │ ├── Maven__org_skyscreamer_jsonassert_1_5_1.xml │ ├── Maven__org_slf4j_jul_to_slf4j_2_0_9.xml │ ├── Maven__org_slf4j_slf4j_api_2_0_9.xml │ ├── Maven__org_springframework_boot_spring_boot_3_1_5.xml │ ├── Maven__org_springframework_boot_spring_boot_actuator_3_1_5.xml │ ├── Maven__org_springframework_boot_spring_boot_actuator_autoconfigure_3_1_5.xml │ ├── Maven__org_springframework_boot_spring_boot_autoconfigure_3_1_5.xml │ ├── Maven__org_springframework_boot_spring_boot_starter_3_1_5.xml │ ├── Maven__org_springframework_boot_spring_boot_starter_actuator_3_1_5.xml │ ├── Maven__org_springframework_boot_spring_boot_starter_aop_3_1_5.xml │ ├── Maven__org_springframework_boot_spring_boot_starter_cache_3_1_5.xml │ ├── Maven__org_springframework_boot_spring_boot_starter_data_jpa_3_1_5.xml │ ├── Maven__org_springframework_boot_spring_boot_starter_data_mongodb_3_1_5.xml │ ├── Maven__org_springframework_boot_spring_boot_starter_freemarker_3_1_5.xml │ ├── Maven__org_springframework_boot_spring_boot_starter_jdbc_3_1_5.xml │ ├── Maven__org_springframework_boot_spring_boot_starter_json_3_1_5.xml │ ├── Maven__org_springframework_boot_spring_boot_starter_logging_3_1_5.xml │ ├── Maven__org_springframework_boot_spring_boot_starter_test_3_1_5.xml │ ├── Maven__org_springframework_boot_spring_boot_starter_tomcat_3_1_5.xml │ ├── Maven__org_springframework_boot_spring_boot_starter_web_3_1_5.xml │ ├── Maven__org_springframework_boot_spring_boot_test_3_1_5.xml │ ├── Maven__org_springframework_boot_spring_boot_test_autoconfigure_3_1_5.xml │ ├── Maven__org_springframework_cloud_spring_cloud_commons_4_0_4.xml │ ├── Maven__org_springframework_cloud_spring_cloud_context_4_0_4.xml │ ├── Maven__org_springframework_cloud_spring_cloud_loadbalancer_4_0_4.xml │ ├── Maven__org_springframework_cloud_spring_cloud_netflix_eureka_client_4_0_3.xml │ ├── Maven__org_springframework_cloud_spring_cloud_netflix_eureka_server_4_0_3.xml │ ├── Maven__org_springframework_cloud_spring_cloud_starter_4_0_4.xml │ ├── Maven__org_springframework_cloud_spring_cloud_starter_loadbalancer_4_0_4.xml │ ├── Maven__org_springframework_cloud_spring_cloud_starter_netflix_eureka_client_4_0_3.xml │ ├── Maven__org_springframework_cloud_spring_cloud_starter_netflix_eureka_server_4_0_3.xml │ ├── Maven__org_springframework_data_spring_data_commons_3_1_5.xml │ ├── Maven__org_springframework_data_spring_data_jpa_3_1_5.xml │ ├── Maven__org_springframework_data_spring_data_mongodb_4_1_5.xml │ ├── Maven__org_springframework_security_spring_security_crypto_6_1_5.xml │ ├── Maven__org_springframework_security_spring_security_rsa_1_0_12_RELEASE.xml │ ├── Maven__org_springframework_spring_aop_6_0_13.xml │ ├── Maven__org_springframework_spring_aspects_6_0_13.xml │ ├── Maven__org_springframework_spring_beans_6_0_13.xml │ ├── Maven__org_springframework_spring_context_6_0_13.xml │ ├── Maven__org_springframework_spring_context_support_6_0_13.xml │ ├── Maven__org_springframework_spring_core_6_0_13.xml │ ├── Maven__org_springframework_spring_expression_6_0_13.xml │ ├── Maven__org_springframework_spring_jcl_6_0_13.xml │ ├── Maven__org_springframework_spring_jdbc_6_0_13.xml │ ├── Maven__org_springframework_spring_orm_6_0_13.xml │ ├── Maven__org_springframework_spring_test_6_0_13.xml │ ├── Maven__org_springframework_spring_tx_6_0_13.xml │ ├── Maven__org_springframework_spring_web_6_0_13.xml │ ├── Maven__org_springframework_spring_webmvc_6_0_13.xml │ ├── Maven__org_xmlunit_xmlunit_core_2_9_1.xml │ ├── Maven__org_yaml_snakeyaml_1_33.xml │ └── Maven__xmlpull_xmlpull_1_1_3_1.xml ├── microservice.iml ├── misc.xml ├── modules.xml ├── uiDesigner.xml └── vcs.xml ├── Eureka ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── example │ │ │ └── Eureka │ │ │ └── EurekaApplication.java │ └── resources │ │ └── application.yml │ └── test │ └── java │ └── com │ └── example │ └── Eureka │ └── EurekaApplicationTests.java ├── FoodService ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── example │ │ │ └── FoodService │ │ │ ├── FoodServiceApplication.java │ │ │ ├── controller │ │ │ └── FoodController.java │ │ │ ├── domain │ │ │ └── Food.java │ │ │ ├── dto │ │ │ ├── FoodDto.java │ │ │ ├── FoodResponse.java │ │ │ └── Restaurant.java │ │ │ ├── mapper │ │ │ └── FoodMapper.java │ │ │ ├── repository │ │ │ └── FoodRepository.java │ │ │ └── service │ │ │ ├── FoodService.java │ │ │ └── impl │ │ │ └── FoodServiceImpl.java │ └── resources │ │ └── application.yml │ └── test │ └── java │ └── com │ └── example │ └── FoodService │ └── FoodServiceApplicationTests.java ├── OrderService ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── example │ │ │ └── OrderService │ │ │ ├── OrderServiceApplication.java │ │ │ ├── controller │ │ │ └── OrderController.java │ │ │ ├── domain │ │ │ ├── Order.java │ │ │ └── Sequence.java │ │ │ ├── dto │ │ │ ├── FoodDetails.java │ │ │ ├── OrderDto.java │ │ │ ├── OrderResponse.java │ │ │ ├── RestaurantDetails.java │ │ │ └── UserDetails.java │ │ │ ├── mapper │ │ │ └── OrderMapper.java │ │ │ ├── repository │ │ │ └── OrderRepository.java │ │ │ └── service │ │ │ ├── OrderService.java │ │ │ ├── SequenceGenerator.java │ │ │ └── impl │ │ │ └── OrderServiceImpl.java │ └── resources │ │ └── application.yml │ └── test │ └── java │ └── com │ └── example │ └── OrderService │ └── OrderServiceApplicationTests.java ├── RestaurantService ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── example │ │ │ └── RestaurantService │ │ │ ├── RestaurantServiceApplication.java │ │ │ ├── controller │ │ │ └── RestaurantController.java │ │ │ ├── domain │ │ │ └── Restaurant.java │ │ │ ├── dto │ │ │ └── RestaurantDto.java │ │ │ ├── mapper │ │ │ └── RestaurantMapper.java │ │ │ ├── repository │ │ │ └── RestaurantRepository.java │ │ │ └── service │ │ │ ├── RestaurantService.java │ │ │ └── impl │ │ │ └── RestaurantServiceImpl.java │ └── resources │ │ └── application.yml │ └── test │ └── java │ └── com │ └── example │ └── RestaurantService │ └── RestaurantServiceApplicationTests.java └── UserService ├── .gitignore ├── .mvn └── wrapper │ ├── maven-wrapper.jar │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src ├── main ├── java │ └── com │ │ └── example │ │ └── UserService │ │ ├── UserServiceApplication.java │ │ ├── controller │ │ └── UserController.java │ │ ├── dto │ │ └── UserDto.java │ │ ├── entity │ │ └── User.java │ │ ├── mapper │ │ └── UserMapper.java │ │ ├── repository │ │ └── UserRepository.java │ │ └── service │ │ ├── UserService.java │ │ └── impl │ │ └── UserServiceImpl.java └── resources │ └── application.yaml └── test └── java └── com └── example └── UserService └── UserServiceApplicationTests.java /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mustafaguler3/spring-angular-microservice-app/241ea5e3fbabbe539bc431bea578601e2fe965f2/.DS_Store -------------------------------------------------------------------------------- /.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 48 | 49 | -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /.idea/jarRepositories.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 9 | 10 | 14 | 15 | 19 | 20 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__antlr_antlr_2_7_7.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__ch_qos_logback_logback_classic_1_4_11.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__ch_qos_logback_logback_core_1_4_11.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_fasterxml_classmate_1_5_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_15_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_15_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_databind_2_15_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_fasterxml_jackson_dataformat_jackson_dataformat_xml_2_15_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_15_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_15_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_15_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_fasterxml_woodstox_woodstox_core_6_2_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_fasterxml_woodstox_woodstox_core_6_5_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_google_code_gson_gson_2_10_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_google_guava_guava_19_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_jayway_jsonpath_json_path_2_8_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_mysql_mysql_connector_j_8_0_33.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_netflix_eureka_eureka_client_2_0_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_netflix_eureka_eureka_client_jersey3_2_0_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_netflix_eureka_eureka_core_2_0_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_netflix_eureka_eureka_core_jersey3_2_0_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_netflix_netflix_commons_netflix_eventbus_0_3_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_netflix_netflix_commons_netflix_infix_0_3_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_netflix_servo_servo_core_0_12_21.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_stoyanr_evictor_1_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_sun_istack_istack_commons_runtime_4_1_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_thoughtworks_xstream_xstream_1_4_19.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_zaxxer_HikariCP_5_0_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__commons_codec_commons_codec_1_15.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__commons_configuration_commons_configuration_1_10.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__commons_jxpath_commons_jxpath_1_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__commons_lang_commons_lang_2_6.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__io_github_x_stream_mxparser_1_2_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__io_micrometer_micrometer_commons_1_11_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__io_micrometer_micrometer_core_1_11_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__io_micrometer_micrometer_observation_1_11_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__io_projectreactor_addons_reactor_extra_3_5_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__io_projectreactor_reactor_core_3_5_11.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__io_smallrye_jandex_3_0_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__jakarta_activation_jakarta_activation_api_2_1_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__jakarta_annotation_jakarta_annotation_api_2_1_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__jakarta_inject_jakarta_inject_api_2_0_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__jakarta_persistence_jakarta_persistence_api_3_1_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__jakarta_servlet_jakarta_servlet_api_6_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__jakarta_transaction_jakarta_transaction_api_2_0_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__jakarta_validation_jakarta_validation_api_3_0_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__jakarta_ws_rs_jakarta_ws_rs_api_3_1_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__jakarta_xml_bind_jakarta_xml_bind_api_4_0_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__joda_time_joda_time_2_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__net_bytebuddy_byte_buddy_1_14_9.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__net_bytebuddy_byte_buddy_agent_1_14_9.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__net_minidev_accessors_smart_2_4_11.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__net_minidev_json_smart_2_4_11.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_antlr_antlr4_runtime_4_10_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_antlr_antlr_runtime_3_4.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_antlr_stringtemplate_3_2_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_apache_commons_commons_math_2_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_apache_httpcomponents_client5_httpclient5_5_2_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_apache_httpcomponents_core5_httpcore5_5_2_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_apache_httpcomponents_core5_httpcore5_h2_5_2_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_apache_httpcomponents_httpclient_4_5_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_apache_httpcomponents_httpcore_4_4_16.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_apache_logging_log4j_log4j_api_2_20_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_apache_logging_log4j_log4j_to_slf4j_2_20_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_core_10_1_15.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_el_10_1_15.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_websocket_10_1_15.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_apiguardian_apiguardian_api_1_1_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_aspectj_aspectjweaver_1_9_20.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_assertj_assertj_core_3_24_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_bouncycastle_bcpkix_jdk18on_1_73.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_bouncycastle_bcprov_jdk18on_1_73.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_bouncycastle_bcutil_jdk18on_1_73.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_codehaus_jettison_jettison_1_4_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_codehaus_woodstox_stax2_api_4_2_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_eclipse_angus_angus_activation_2_0_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_freemarker_freemarker_2_3_32.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_glassfish_hk2_external_aopalliance_repackaged_3_0_4.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_glassfish_hk2_hk2_api_3_0_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_glassfish_hk2_hk2_locator_3_0_4.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_glassfish_hk2_hk2_utils_3_0_4.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_glassfish_hk2_osgi_resource_locator_1_0_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_glassfish_hk2_spring_bridge_3_0_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_glassfish_jaxb_jaxb_core_4_0_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_glassfish_jaxb_jaxb_runtime_4_0_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_glassfish_jaxb_txw2_4_0_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_glassfish_jersey_connectors_jersey_apache_connector_3_1_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_glassfish_jersey_containers_jersey_container_servlet_3_1_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_glassfish_jersey_containers_jersey_container_servlet_core_3_1_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_glassfish_jersey_core_jersey_client_3_1_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_glassfish_jersey_core_jersey_common_3_1_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_glassfish_jersey_core_jersey_server_3_1_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_glassfish_jersey_inject_jersey_hk2_3_1_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_hamcrest_hamcrest_2_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_hdrhistogram_HdrHistogram_2_1_12.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_hibernate_common_hibernate_commons_annotations_6_0_6_Final.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_hibernate_orm_hibernate_core_6_2_13_Final.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_javassist_javassist_3_29_2_GA.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_jboss_logging_jboss_logging_3_5_3_Final.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_5_9_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_api_5_9_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_engine_5_9_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_params_5_9_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_junit_platform_junit_platform_commons_1_9_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_junit_platform_junit_platform_engine_1_9_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_latencyutils_LatencyUtils_2_0_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_mapstruct_mapstruct_1_5_5_Final.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_mockito_mockito_core_5_3_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_mockito_mockito_junit_jupiter_5_3_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_mongodb_bson_4_9_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_mongodb_bson_record_codec_4_9_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_mongodb_mongodb_driver_core_4_9_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_mongodb_mongodb_driver_sync_4_9_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_objenesis_objenesis_3_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_opentest4j_opentest4j_1_2_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_ow2_asm_asm_9_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_projectlombok_lombok_1_18_30.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_reactivestreams_reactive_streams_1_0_4.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_skyscreamer_jsonassert_1_5_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_slf4j_jul_to_slf4j_2_0_9.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_slf4j_slf4j_api_2_0_9.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_boot_spring_boot_3_1_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_boot_spring_boot_actuator_3_1_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_boot_spring_boot_actuator_autoconfigure_3_1_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_boot_spring_boot_autoconfigure_3_1_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_3_1_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_actuator_3_1_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_aop_3_1_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_cache_3_1_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_data_jpa_3_1_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_data_mongodb_3_1_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_freemarker_3_1_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_jdbc_3_1_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_json_3_1_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_logging_3_1_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_test_3_1_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_tomcat_3_1_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_web_3_1_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_boot_spring_boot_test_3_1_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_boot_spring_boot_test_autoconfigure_3_1_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_cloud_spring_cloud_commons_4_0_4.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_cloud_spring_cloud_context_4_0_4.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_cloud_spring_cloud_loadbalancer_4_0_4.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_cloud_spring_cloud_netflix_eureka_client_4_0_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_cloud_spring_cloud_netflix_eureka_server_4_0_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_cloud_spring_cloud_starter_4_0_4.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_cloud_spring_cloud_starter_loadbalancer_4_0_4.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_cloud_spring_cloud_starter_netflix_eureka_client_4_0_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_cloud_spring_cloud_starter_netflix_eureka_server_4_0_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_data_spring_data_commons_3_1_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_data_spring_data_jpa_3_1_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_data_spring_data_mongodb_4_1_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_security_spring_security_crypto_6_1_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_security_spring_security_rsa_1_0_12_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_aop_6_0_13.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_aspects_6_0_13.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_beans_6_0_13.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_context_6_0_13.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_context_support_6_0_13.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_core_6_0_13.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_expression_6_0_13.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_jcl_6_0_13.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_jdbc_6_0_13.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_orm_6_0_13.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_test_6_0_13.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_tx_6_0_13.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_web_6_0_13.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_webmvc_6_0_13.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_xmlunit_xmlunit_core_2_9_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_yaml_snakeyaml_1_33.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__xmlpull_xmlpull_1_1_3_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/microservice.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Eureka/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/**/target/ 5 | !**/src/test/**/target/ 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | !**/src/main/**/build/ 30 | !**/src/test/**/build/ 31 | 32 | ### VS Code ### 33 | .vscode/ 34 | -------------------------------------------------------------------------------- /Eureka/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mustafaguler3/spring-angular-microservice-app/241ea5e3fbabbe539bc431bea578601e2fe965f2/Eureka/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /Eureka/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.5/apache-maven-3.9.5-bin.zip 2 | wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar 3 | -------------------------------------------------------------------------------- /Eureka/mvnw.cmd: -------------------------------------------------------------------------------- 1 | @REM ---------------------------------------------------------------------------- 2 | @REM Licensed to the Apache Software Foundation (ASF) under one 3 | @REM or more contributor license agreements. See the NOTICE file 4 | @REM distributed with this work for additional information 5 | @REM regarding copyright ownership. The ASF licenses this file 6 | @REM to you under the Apache License, Version 2.0 (the 7 | @REM "License"); you may not use this file except in compliance 8 | @REM with the License. You may obtain a copy of the License at 9 | @REM 10 | @REM https://www.apache.org/licenses/LICENSE-2.0 11 | @REM 12 | @REM Unless required by applicable law or agreed to in writing, 13 | @REM software distributed under the License is distributed on an 14 | @REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | @REM KIND, either express or implied. See the License for the 16 | @REM specific language governing permissions and limitations 17 | @REM under the License. 18 | @REM ---------------------------------------------------------------------------- 19 | 20 | @REM ---------------------------------------------------------------------------- 21 | @REM Apache Maven Wrapper startup batch script, version 3.2.0 22 | @REM 23 | @REM Required ENV vars: 24 | @REM JAVA_HOME - location of a JDK home dir 25 | @REM 26 | @REM Optional ENV vars 27 | @REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands 28 | @REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending 29 | @REM MAVEN_OPTS - parameters passed to the Java VM when running Maven 30 | @REM e.g. to debug Maven itself, use 31 | @REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 32 | @REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files 33 | @REM ---------------------------------------------------------------------------- 34 | 35 | @REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' 36 | @echo off 37 | @REM set title of command window 38 | title %0 39 | @REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' 40 | @if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% 41 | 42 | @REM set %HOME% to equivalent of $HOME 43 | if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") 44 | 45 | @REM Execute a user defined script before this one 46 | if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre 47 | @REM check for pre script, once with legacy .bat ending and once with .cmd ending 48 | if exist "%USERPROFILE%\mavenrc_pre.bat" call "%USERPROFILE%\mavenrc_pre.bat" %* 49 | if exist "%USERPROFILE%\mavenrc_pre.cmd" call "%USERPROFILE%\mavenrc_pre.cmd" %* 50 | :skipRcPre 51 | 52 | @setlocal 53 | 54 | set ERROR_CODE=0 55 | 56 | @REM To isolate internal variables from possible post scripts, we use another setlocal 57 | @setlocal 58 | 59 | @REM ==== START VALIDATION ==== 60 | if not "%JAVA_HOME%" == "" goto OkJHome 61 | 62 | echo. 63 | echo Error: JAVA_HOME not found in your environment. >&2 64 | echo Please set the JAVA_HOME variable in your environment to match the >&2 65 | echo location of your Java installation. >&2 66 | echo. 67 | goto error 68 | 69 | :OkJHome 70 | if exist "%JAVA_HOME%\bin\java.exe" goto init 71 | 72 | echo. 73 | echo Error: JAVA_HOME is set to an invalid directory. >&2 74 | echo JAVA_HOME = "%JAVA_HOME%" >&2 75 | echo Please set the JAVA_HOME variable in your environment to match the >&2 76 | echo location of your Java installation. >&2 77 | echo. 78 | goto error 79 | 80 | @REM ==== END VALIDATION ==== 81 | 82 | :init 83 | 84 | @REM Find the project base dir, i.e. the directory that contains the folder ".mvn". 85 | @REM Fallback to current working directory if not found. 86 | 87 | set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% 88 | IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir 89 | 90 | set EXEC_DIR=%CD% 91 | set WDIR=%EXEC_DIR% 92 | :findBaseDir 93 | IF EXIST "%WDIR%"\.mvn goto baseDirFound 94 | cd .. 95 | IF "%WDIR%"=="%CD%" goto baseDirNotFound 96 | set WDIR=%CD% 97 | goto findBaseDir 98 | 99 | :baseDirFound 100 | set MAVEN_PROJECTBASEDIR=%WDIR% 101 | cd "%EXEC_DIR%" 102 | goto endDetectBaseDir 103 | 104 | :baseDirNotFound 105 | set MAVEN_PROJECTBASEDIR=%EXEC_DIR% 106 | cd "%EXEC_DIR%" 107 | 108 | :endDetectBaseDir 109 | 110 | IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig 111 | 112 | @setlocal EnableExtensions EnableDelayedExpansion 113 | for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a 114 | @endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% 115 | 116 | :endReadAdditionalConfig 117 | 118 | SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" 119 | set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" 120 | set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain 121 | 122 | set WRAPPER_URL="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar" 123 | 124 | FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( 125 | IF "%%A"=="wrapperUrl" SET WRAPPER_URL=%%B 126 | ) 127 | 128 | @REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central 129 | @REM This allows using the maven wrapper in projects that prohibit checking in binary data. 130 | if exist %WRAPPER_JAR% ( 131 | if "%MVNW_VERBOSE%" == "true" ( 132 | echo Found %WRAPPER_JAR% 133 | ) 134 | ) else ( 135 | if not "%MVNW_REPOURL%" == "" ( 136 | SET WRAPPER_URL="%MVNW_REPOURL%/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar" 137 | ) 138 | if "%MVNW_VERBOSE%" == "true" ( 139 | echo Couldn't find %WRAPPER_JAR%, downloading it ... 140 | echo Downloading from: %WRAPPER_URL% 141 | ) 142 | 143 | powershell -Command "&{"^ 144 | "$webclient = new-object System.Net.WebClient;"^ 145 | "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ 146 | "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ 147 | "}"^ 148 | "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%WRAPPER_URL%', '%WRAPPER_JAR%')"^ 149 | "}" 150 | if "%MVNW_VERBOSE%" == "true" ( 151 | echo Finished downloading %WRAPPER_JAR% 152 | ) 153 | ) 154 | @REM End of extension 155 | 156 | @REM If specified, validate the SHA-256 sum of the Maven wrapper jar file 157 | SET WRAPPER_SHA_256_SUM="" 158 | FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( 159 | IF "%%A"=="wrapperSha256Sum" SET WRAPPER_SHA_256_SUM=%%B 160 | ) 161 | IF NOT %WRAPPER_SHA_256_SUM%=="" ( 162 | powershell -Command "&{"^ 163 | "$hash = (Get-FileHash \"%WRAPPER_JAR%\" -Algorithm SHA256).Hash.ToLower();"^ 164 | "If('%WRAPPER_SHA_256_SUM%' -ne $hash){"^ 165 | " Write-Output 'Error: Failed to validate Maven wrapper SHA-256, your Maven wrapper might be compromised.';"^ 166 | " Write-Output 'Investigate or delete %WRAPPER_JAR% to attempt a clean download.';"^ 167 | " Write-Output 'If you updated your Maven version, you need to update the specified wrapperSha256Sum property.';"^ 168 | " exit 1;"^ 169 | "}"^ 170 | "}" 171 | if ERRORLEVEL 1 goto error 172 | ) 173 | 174 | @REM Provide a "standardized" way to retrieve the CLI args that will 175 | @REM work with both Windows and non-Windows executions. 176 | set MAVEN_CMD_LINE_ARGS=%* 177 | 178 | %MAVEN_JAVA_EXE% ^ 179 | %JVM_CONFIG_MAVEN_PROPS% ^ 180 | %MAVEN_OPTS% ^ 181 | %MAVEN_DEBUG_OPTS% ^ 182 | -classpath %WRAPPER_JAR% ^ 183 | "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" ^ 184 | %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* 185 | if ERRORLEVEL 1 goto error 186 | goto end 187 | 188 | :error 189 | set ERROR_CODE=1 190 | 191 | :end 192 | @endlocal & set ERROR_CODE=%ERROR_CODE% 193 | 194 | if not "%MAVEN_SKIP_RC%"=="" goto skipRcPost 195 | @REM check for post script, once with legacy .bat ending and once with .cmd ending 196 | if exist "%USERPROFILE%\mavenrc_post.bat" call "%USERPROFILE%\mavenrc_post.bat" 197 | if exist "%USERPROFILE%\mavenrc_post.cmd" call "%USERPROFILE%\mavenrc_post.cmd" 198 | :skipRcPost 199 | 200 | @REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' 201 | if "%MAVEN_BATCH_PAUSE%"=="on" pause 202 | 203 | if "%MAVEN_TERMINATE_CMD%"=="on" exit %ERROR_CODE% 204 | 205 | cmd /C exit /B %ERROR_CODE% 206 | -------------------------------------------------------------------------------- /Eureka/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | org.springframework.boot 7 | spring-boot-starter-parent 8 | 3.1.5 9 | 10 | 11 | com.example 12 | Eureka 13 | 0.0.1-SNAPSHOT 14 | Eureka 15 | Demo project for Spring Boot 16 | 17 | 17 18 | 2022.0.4 19 | 20 | 21 | 22 | org.springframework.cloud 23 | spring-cloud-starter-netflix-eureka-server 24 | 25 | 26 | 27 | org.springframework.boot 28 | spring-boot-starter-test 29 | test 30 | 31 | 32 | 33 | 34 | 35 | org.springframework.cloud 36 | spring-cloud-dependencies 37 | ${spring-cloud.version} 38 | pom 39 | import 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | org.springframework.boot 48 | spring-boot-maven-plugin 49 | 50 | 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /Eureka/src/main/java/com/example/Eureka/EurekaApplication.java: -------------------------------------------------------------------------------- 1 | package com.example.Eureka; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer; 6 | 7 | @SpringBootApplication 8 | @EnableEurekaServer 9 | public class EurekaApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(EurekaApplication.class, args); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /Eureka/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8761 3 | 4 | eureka: 5 | client: 6 | fetch-registry: false 7 | register-with-eureka: false 8 | -------------------------------------------------------------------------------- /Eureka/src/test/java/com/example/Eureka/EurekaApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example.Eureka; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class EurekaApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /FoodService/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/**/target/ 5 | !**/src/test/**/target/ 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | !**/src/main/**/build/ 30 | !**/src/test/**/build/ 31 | 32 | ### VS Code ### 33 | .vscode/ 34 | -------------------------------------------------------------------------------- /FoodService/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mustafaguler3/spring-angular-microservice-app/241ea5e3fbabbe539bc431bea578601e2fe965f2/FoodService/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /FoodService/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.5/apache-maven-3.9.5-bin.zip 2 | wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar 3 | -------------------------------------------------------------------------------- /FoodService/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | org.springframework.boot 7 | spring-boot-starter-parent 8 | 3.1.5 9 | 10 | 11 | com.example 12 | FoodService 13 | 0.0.1-SNAPSHOT 14 | FoodService 15 | Demo project for Spring Boot 16 | 17 | 17 18 | 2022.0.4 19 | 20 | 21 | 22 | org.springframework.boot 23 | spring-boot-starter-data-jpa 24 | 25 | 26 | org.mapstruct 27 | mapstruct 28 | 1.5.5.Final 29 | 30 | 31 | org.springframework.boot 32 | spring-boot-starter-web 33 | 34 | 35 | org.springframework.cloud 36 | spring-cloud-starter-netflix-eureka-client 37 | 38 | 39 | 40 | com.mysql 41 | mysql-connector-j 42 | runtime 43 | 44 | 45 | org.projectlombok 46 | lombok 47 | true 48 | 49 | 50 | org.springframework.boot 51 | spring-boot-starter-test 52 | test 53 | 54 | 55 | 56 | 57 | 58 | org.springframework.cloud 59 | spring-cloud-dependencies 60 | ${spring-cloud.version} 61 | pom 62 | import 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | org.springframework.boot 71 | spring-boot-maven-plugin 72 | 73 | 74 | 75 | org.projectlombok 76 | lombok 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | -------------------------------------------------------------------------------- /FoodService/src/main/java/com/example/FoodService/FoodServiceApplication.java: -------------------------------------------------------------------------------- 1 | package com.example.FoodService; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.client.loadbalancer.LoadBalanced; 6 | import org.springframework.context.annotation.Bean; 7 | import org.springframework.web.client.RestTemplate; 8 | 9 | @SpringBootApplication 10 | public class FoodServiceApplication { 11 | 12 | public static void main(String[] args) { 13 | SpringApplication.run(FoodServiceApplication.class, args); 14 | } 15 | 16 | @Bean 17 | @LoadBalanced 18 | public RestTemplate restTemplate(){ 19 | return new RestTemplate(); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /FoodService/src/main/java/com/example/FoodService/controller/FoodController.java: -------------------------------------------------------------------------------- 1 | package com.example.FoodService.controller; 2 | 3 | import com.example.FoodService.dto.FoodDto; 4 | import com.example.FoodService.dto.FoodResponse; 5 | import com.example.FoodService.service.FoodService; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.http.HttpStatus; 8 | import org.springframework.http.ResponseEntity; 9 | import org.springframework.web.bind.annotation.*; 10 | 11 | @RestController 12 | @RequestMapping("/food") 13 | public class FoodController { 14 | 15 | @Autowired 16 | FoodService foodService; 17 | 18 | @PostMapping("/addFood") 19 | public ResponseEntity addFood(@RequestBody FoodDto foodDto){ 20 | FoodDto savedFood = foodService.addFood(foodDto); 21 | return new ResponseEntity<>(savedFood, HttpStatus.CREATED); 22 | } 23 | 24 | @GetMapping("/getFoodDetailAndRestaurantById/{restaurantId}") 25 | public ResponseEntity getRestaurantDetailWithFood(@PathVariable Integer restaurantId){ 26 | FoodResponse foodResponse = foodService.getFoodDetails(restaurantId); 27 | return new ResponseEntity<>(foodResponse,HttpStatus.OK); 28 | } 29 | } 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /FoodService/src/main/java/com/example/FoodService/domain/Food.java: -------------------------------------------------------------------------------- 1 | package com.example.FoodService.domain; 2 | 3 | import jakarta.persistence.*; 4 | import lombok.AllArgsConstructor; 5 | import lombok.Data; 6 | import lombok.NoArgsConstructor; 7 | 8 | @Data 9 | @Entity 10 | @AllArgsConstructor 11 | @NoArgsConstructor 12 | public class Food { 13 | 14 | @Id 15 | @GeneratedValue(strategy = GenerationType.AUTO) 16 | private int id; 17 | private String foodName; 18 | private boolean isVeg; 19 | private int price; 20 | private Integer restaurantId; 21 | @Column(nullable = false,columnDefinition = "INT DEFAULT 0") 22 | private Integer quantity; 23 | } 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /FoodService/src/main/java/com/example/FoodService/dto/FoodDto.java: -------------------------------------------------------------------------------- 1 | package com.example.FoodService.dto; 2 | 3 | import jakarta.persistence.Column; 4 | import lombok.AllArgsConstructor; 5 | import lombok.Builder; 6 | import lombok.Data; 7 | import lombok.NoArgsConstructor; 8 | 9 | @Data 10 | @AllArgsConstructor 11 | @NoArgsConstructor 12 | @Builder 13 | public class FoodDto { 14 | 15 | private int id; 16 | private String foodName; 17 | private boolean isVeg; 18 | private int price; 19 | private Integer restaurantId; 20 | private Integer quantity; 21 | 22 | } 23 | -------------------------------------------------------------------------------- /FoodService/src/main/java/com/example/FoodService/dto/FoodResponse.java: -------------------------------------------------------------------------------- 1 | package com.example.FoodService.dto; 2 | 3 | import com.example.FoodService.domain.Food; 4 | import lombok.AllArgsConstructor; 5 | import lombok.Data; 6 | import lombok.NoArgsConstructor; 7 | 8 | import java.util.List; 9 | 10 | @Data 11 | @AllArgsConstructor 12 | @NoArgsConstructor 13 | public class FoodResponse { 14 | private List foodList; 15 | private Restaurant restaurant; 16 | } 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /FoodService/src/main/java/com/example/FoodService/dto/Restaurant.java: -------------------------------------------------------------------------------- 1 | package com.example.FoodService.dto; 2 | 3 | import lombok.AllArgsConstructor; 4 | import lombok.Data; 5 | import lombok.NoArgsConstructor; 6 | 7 | @Data 8 | @AllArgsConstructor 9 | @NoArgsConstructor 10 | public class Restaurant { 11 | private int id; 12 | private String name; 13 | private String address; 14 | private String city; 15 | private String description; 16 | } 17 | -------------------------------------------------------------------------------- /FoodService/src/main/java/com/example/FoodService/mapper/FoodMapper.java: -------------------------------------------------------------------------------- 1 | package com.example.FoodService.mapper; 2 | 3 | import com.example.FoodService.domain.Food; 4 | import com.example.FoodService.dto.FoodDto; 5 | import org.mapstruct.Mapper; 6 | import org.mapstruct.factory.Mappers; 7 | 8 | @Mapper 9 | public interface FoodMapper { 10 | 11 | FoodMapper INSTANCE = Mappers.getMapper(FoodMapper.class); 12 | 13 | Food mapFoodDtoToFood(FoodDto foodDto); 14 | 15 | FoodDto mapFoodToFoodDto(Food food); 16 | } 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /FoodService/src/main/java/com/example/FoodService/repository/FoodRepository.java: -------------------------------------------------------------------------------- 1 | package com.example.FoodService.repository; 2 | 3 | import com.example.FoodService.domain.Food; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | import org.springframework.stereotype.Repository; 6 | 7 | import java.util.List; 8 | 9 | @Repository 10 | public interface FoodRepository extends JpaRepository { 11 | List findByRestaurantId(Integer restaurantId); 12 | } 13 | -------------------------------------------------------------------------------- /FoodService/src/main/java/com/example/FoodService/service/FoodService.java: -------------------------------------------------------------------------------- 1 | package com.example.FoodService.service; 2 | 3 | import com.example.FoodService.dto.FoodDto; 4 | import com.example.FoodService.dto.FoodResponse; 5 | 6 | public interface FoodService { 7 | FoodDto addFood(FoodDto foodDto); 8 | 9 | FoodResponse getFoodDetails(Integer restaurantId); 10 | } 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /FoodService/src/main/java/com/example/FoodService/service/impl/FoodServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.example.FoodService.service.impl; 2 | 3 | import com.example.FoodService.domain.Food; 4 | import com.example.FoodService.dto.FoodDto; 5 | import com.example.FoodService.dto.FoodResponse; 6 | import com.example.FoodService.dto.Restaurant; 7 | import com.example.FoodService.mapper.FoodMapper; 8 | import com.example.FoodService.repository.FoodRepository; 9 | import com.example.FoodService.service.FoodService; 10 | import org.springframework.beans.factory.annotation.Autowired; 11 | import org.springframework.stereotype.Service; 12 | import org.springframework.web.client.RestTemplate; 13 | 14 | import java.util.List; 15 | 16 | @Service 17 | public class FoodServiceImpl implements FoodService { 18 | 19 | @Autowired 20 | FoodRepository foodRepository; 21 | 22 | @Autowired 23 | RestTemplate restTemplate; 24 | 25 | @Override 26 | public FoodDto addFood(FoodDto foodDto) { 27 | Food food = foodRepository.save(FoodMapper.INSTANCE.mapFoodDtoToFood(foodDto)); 28 | return FoodMapper.INSTANCE.mapFoodToFoodDto(food); 29 | } 30 | 31 | @Override 32 | public FoodResponse getFoodDetails(Integer restaurantId) { 33 | 34 | List foodList = getFoodList(restaurantId); 35 | Restaurant restaurant = getRestaurantDetails(restaurantId); 36 | return createFoodResponse(foodList,restaurant); 37 | } 38 | 39 | private FoodResponse createFoodResponse(List foodList, Restaurant restaurant) { 40 | FoodResponse foodResponse = new FoodResponse(); 41 | foodResponse.setFoodList(foodList); 42 | foodResponse.setRestaurant(restaurant); 43 | 44 | return foodResponse; 45 | } 46 | 47 | private Restaurant getRestaurantDetails(Integer restaurantId) { 48 | Restaurant restaurant = restTemplate.getForObject("http://RESTAURANT-SERVICE/getById/"+restaurantId,Restaurant.class); 49 | 50 | return restaurant; 51 | } 52 | 53 | private List getFoodList(Integer restaurantId) { 54 | return foodRepository.findByRestaurantId(restaurantId); 55 | } 56 | 57 | } 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | -------------------------------------------------------------------------------- /FoodService/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8082 3 | 4 | eureka: 5 | client: 6 | service-url: 7 | defaultZone: http://localhost:8761/eureka/ 8 | 9 | spring: 10 | application: 11 | name: FOOD-SERVICE 12 | datasource: 13 | url: jdbc:mysql://localhost:3306/foodDb 14 | username: root 15 | password: 0 16 | driver-class-name: com.mysql.cj.jdbc.Driver 17 | jpa: 18 | hibernate: 19 | ddl-auto: update 20 | show-sql: true 21 | database-platform: org.hibernate.dialect.MySQL8Dialect 22 | 23 | -------------------------------------------------------------------------------- /FoodService/src/test/java/com/example/FoodService/FoodServiceApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example.FoodService; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class FoodServiceApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /OrderService/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/**/target/ 5 | !**/src/test/**/target/ 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | !**/src/main/**/build/ 30 | !**/src/test/**/build/ 31 | 32 | ### VS Code ### 33 | .vscode/ 34 | !/pom.xml 35 | -------------------------------------------------------------------------------- /OrderService/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mustafaguler3/spring-angular-microservice-app/241ea5e3fbabbe539bc431bea578601e2fe965f2/OrderService/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /OrderService/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.5/apache-maven-3.9.5-bin.zip 2 | wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar 3 | -------------------------------------------------------------------------------- /OrderService/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | org.springframework.boot 7 | spring-boot-starter-parent 8 | 3.1.5 9 | 10 | 11 | com.example 12 | OrderService 13 | 0.0.1-SNAPSHOT 14 | OrderService 15 | Demo project for Spring Boot 16 | 17 | 17 18 | 2022.0.4 19 | 20 | 21 | 22 | org.springframework.boot 23 | spring-boot-starter-data-mongodb 24 | 25 | 26 | org.mapstruct 27 | mapstruct 28 | 1.5.5.Final 29 | 30 | 31 | org.springframework.boot 32 | spring-boot-starter-web 33 | 34 | 35 | org.springframework.cloud 36 | spring-cloud-starter-netflix-eureka-client 37 | 38 | 39 | 40 | org.projectlombok 41 | lombok 42 | true 43 | 44 | 45 | org.springframework.boot 46 | spring-boot-starter-test 47 | test 48 | 49 | 50 | 51 | 52 | 53 | org.springframework.cloud 54 | spring-cloud-dependencies 55 | ${spring-cloud.version} 56 | pom 57 | import 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | org.springframework.boot 66 | spring-boot-maven-plugin 67 | 68 | 69 | 70 | org.projectlombok 71 | lombok 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | -------------------------------------------------------------------------------- /OrderService/src/main/java/com/example/OrderService/OrderServiceApplication.java: -------------------------------------------------------------------------------- 1 | package com.example.OrderService; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.client.loadbalancer.LoadBalanced; 6 | import org.springframework.context.annotation.Bean; 7 | import org.springframework.web.client.RestTemplate; 8 | 9 | @SpringBootApplication 10 | public class OrderServiceApplication { 11 | 12 | public static void main(String[] args) { 13 | SpringApplication.run(OrderServiceApplication.class, args); 14 | } 15 | 16 | @Bean 17 | @LoadBalanced 18 | private RestTemplate restTemplate(){ 19 | return new RestTemplate(); 20 | } 21 | } 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /OrderService/src/main/java/com/example/OrderService/controller/OrderController.java: -------------------------------------------------------------------------------- 1 | package com.example.OrderService.controller; 2 | 3 | import com.example.OrderService.dto.OrderDto; 4 | import com.example.OrderService.service.OrderService; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.http.HttpStatus; 7 | import org.springframework.http.ResponseEntity; 8 | import org.springframework.web.bind.annotation.PostMapping; 9 | import org.springframework.web.bind.annotation.RequestBody; 10 | import org.springframework.web.bind.annotation.RequestMapping; 11 | import org.springframework.web.bind.annotation.RestController; 12 | 13 | @RestController 14 | @RequestMapping("/order") 15 | public class OrderController { 16 | 17 | @Autowired 18 | OrderService orderService; 19 | 20 | @PostMapping("/saveOrder") 21 | public ResponseEntity saveOrder(@RequestBody OrderDto orderDto){ 22 | OrderDto orderSaved= orderService.saveOrder(orderDto); 23 | return new ResponseEntity<>(orderSaved, HttpStatus.CREATED); 24 | } 25 | } 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /OrderService/src/main/java/com/example/OrderService/domain/Order.java: -------------------------------------------------------------------------------- 1 | package com.example.OrderService.domain; 2 | 3 | import com.example.OrderService.dto.FoodDetails; 4 | import com.example.OrderService.dto.RestaurantDetails; 5 | import com.example.OrderService.dto.UserDetails; 6 | import lombok.AllArgsConstructor; 7 | import lombok.Data; 8 | import lombok.NoArgsConstructor; 9 | import org.springframework.data.mongodb.core.mapping.Document; 10 | 11 | import java.util.List; 12 | 13 | @Data 14 | @AllArgsConstructor 15 | @NoArgsConstructor 16 | @Document("order") 17 | public class Order { 18 | 19 | private Integer orderId; 20 | private List foodDetails; 21 | private RestaurantDetails restaurantDetail; 22 | private UserDetails userDetail; 23 | } 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /OrderService/src/main/java/com/example/OrderService/domain/Sequence.java: -------------------------------------------------------------------------------- 1 | package com.example.OrderService.domain; 2 | 3 | import lombok.AllArgsConstructor; 4 | import lombok.Data; 5 | import lombok.NoArgsConstructor; 6 | import org.springframework.data.annotation.Id; 7 | import org.springframework.data.mongodb.core.mapping.Document; 8 | 9 | @Document(collation = "sequence") 10 | @Data 11 | @AllArgsConstructor 12 | @NoArgsConstructor 13 | public class Sequence { 14 | 15 | @Id 16 | private int id; 17 | private int sequence; 18 | } 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /OrderService/src/main/java/com/example/OrderService/dto/FoodDetails.java: -------------------------------------------------------------------------------- 1 | package com.example.OrderService.dto; 2 | 3 | import lombok.AllArgsConstructor; 4 | import lombok.Data; 5 | import lombok.NoArgsConstructor; 6 | 7 | @Data 8 | @AllArgsConstructor 9 | @NoArgsConstructor 10 | public class FoodDetails { 11 | private int id; 12 | private String foodName; 13 | private String description; 14 | private boolean isVeg; 15 | private int price; 16 | private Integer restaurantId; 17 | private Integer quantity; 18 | } 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /OrderService/src/main/java/com/example/OrderService/dto/OrderDto.java: -------------------------------------------------------------------------------- 1 | package com.example.OrderService.dto; 2 | 3 | import lombok.AllArgsConstructor; 4 | import lombok.Data; 5 | import lombok.NoArgsConstructor; 6 | 7 | import java.util.List; 8 | 9 | @Data 10 | @AllArgsConstructor 11 | @NoArgsConstructor 12 | public class OrderDto { 13 | private Integer orderId; 14 | private List foodDetails; 15 | private RestaurantDetails restaurantDetail; 16 | private UserDetails userDetail; 17 | } 18 | -------------------------------------------------------------------------------- /OrderService/src/main/java/com/example/OrderService/dto/OrderResponse.java: -------------------------------------------------------------------------------- 1 | package com.example.OrderService.dto; 2 | 3 | import lombok.AllArgsConstructor; 4 | import lombok.Data; 5 | import lombok.NoArgsConstructor; 6 | 7 | import java.util.List; 8 | 9 | @Data 10 | @AllArgsConstructor 11 | @NoArgsConstructor 12 | public class OrderResponse { 13 | private List foodDetails; 14 | private Integer userId; 15 | private RestaurantDetails restaurantDetail; 16 | } 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /OrderService/src/main/java/com/example/OrderService/dto/RestaurantDetails.java: -------------------------------------------------------------------------------- 1 | package com.example.OrderService.dto; 2 | 3 | import lombok.AllArgsConstructor; 4 | import lombok.Data; 5 | import lombok.NoArgsConstructor; 6 | 7 | @Data 8 | @AllArgsConstructor 9 | @NoArgsConstructor 10 | public class RestaurantDetails { 11 | private int id; 12 | private String name; 13 | private String address; 14 | private String city; 15 | private String description; 16 | } 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /OrderService/src/main/java/com/example/OrderService/dto/UserDetails.java: -------------------------------------------------------------------------------- 1 | package com.example.OrderService.dto; 2 | 3 | import lombok.AllArgsConstructor; 4 | import lombok.Data; 5 | import lombok.NoArgsConstructor; 6 | 7 | @Data 8 | @AllArgsConstructor 9 | @NoArgsConstructor 10 | public class UserDetails { 11 | private int userId; 12 | private String username; 13 | private String password; 14 | private String address; 15 | private String city; 16 | } 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /OrderService/src/main/java/com/example/OrderService/mapper/OrderMapper.java: -------------------------------------------------------------------------------- 1 | package com.example.OrderService.mapper; 2 | 3 | import com.example.OrderService.domain.Order; 4 | import com.example.OrderService.dto.OrderDto; 5 | import org.mapstruct.Mapper; 6 | import org.mapstruct.factory.Mappers; 7 | 8 | @Mapper 9 | public interface OrderMapper { 10 | 11 | OrderMapper INSTANCE = Mappers.getMapper(OrderMapper.class); 12 | 13 | Order mapOrderDtoToOrder(OrderDto orderDto); 14 | OrderDto mapOrderToOrderDto(Order order); 15 | 16 | } 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /OrderService/src/main/java/com/example/OrderService/repository/OrderRepository.java: -------------------------------------------------------------------------------- 1 | package com.example.OrderService.repository; 2 | 3 | import com.example.OrderService.domain.Order; 4 | import org.springframework.data.mongodb.repository.MongoRepository; 5 | import org.springframework.stereotype.Repository; 6 | 7 | @Repository 8 | public interface OrderRepository extends MongoRepository { 9 | } 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /OrderService/src/main/java/com/example/OrderService/service/OrderService.java: -------------------------------------------------------------------------------- 1 | package com.example.OrderService.service; 2 | 3 | import com.example.OrderService.dto.OrderDto; 4 | 5 | public interface OrderService { 6 | OrderDto saveOrder(OrderDto orderDto); 7 | } 8 | -------------------------------------------------------------------------------- /OrderService/src/main/java/com/example/OrderService/service/SequenceGenerator.java: -------------------------------------------------------------------------------- 1 | package com.example.OrderService.service; 2 | 3 | import com.example.OrderService.domain.Sequence; 4 | import org.springframework.beans.factory.annotation.Autowired; 5 | import org.springframework.data.mongodb.core.FindAndModifyOptions; 6 | import org.springframework.data.mongodb.core.MongoOperations; 7 | import org.springframework.data.mongodb.core.query.Query; 8 | import org.springframework.data.mongodb.core.query.Update; 9 | import org.springframework.stereotype.Service; 10 | 11 | import static org.springframework.data.mongodb.core.query.Criteria.where; 12 | 13 | @Service 14 | public class SequenceGenerator { 15 | 16 | @Autowired 17 | private MongoOperations mongoOperations; 18 | 19 | public int generateNextOrder(){ 20 | 21 | Sequence sequence = mongoOperations.findAndModify( 22 | Query.query(where("_id").is("sequence")), 23 | new Update().inc("sequence",1), 24 | FindAndModifyOptions.options().returnNew(true).upsert(true), 25 | Sequence.class 26 | ); 27 | 28 | return sequence.getSequence(); 29 | } 30 | 31 | } 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /OrderService/src/main/java/com/example/OrderService/service/impl/OrderServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.example.OrderService.service.impl; 2 | 3 | import com.example.OrderService.domain.Order; 4 | import com.example.OrderService.dto.OrderDto; 5 | import com.example.OrderService.dto.UserDetails; 6 | import com.example.OrderService.mapper.OrderMapper; 7 | import com.example.OrderService.repository.OrderRepository; 8 | import com.example.OrderService.service.OrderService; 9 | import com.example.OrderService.service.SequenceGenerator; 10 | import org.springframework.beans.factory.annotation.Autowired; 11 | import org.springframework.stereotype.Service; 12 | import org.springframework.web.client.RestTemplate; 13 | 14 | @Service 15 | public class OrderServiceImpl implements OrderService { 16 | 17 | @Autowired 18 | OrderRepository orderRepository; 19 | @Autowired 20 | SequenceGenerator sequenceGenerator; 21 | @Autowired 22 | RestTemplate restTemplate; 23 | 24 | @Override 25 | public OrderDto saveOrder(OrderDto orderDto) { 26 | Integer newOrderId = sequenceGenerator.generateNextOrder(); 27 | 28 | UserDetails userDetails = getUserDetailsFromUserId(orderDto.getUserDetail().getUserId()); 29 | 30 | Order orderSaved = new Order(newOrderId,orderDto.getFoodDetails(),orderDto.getRestaurantDetail(),orderDto.getUserDetail()); 31 | orderRepository.save(orderSaved); 32 | 33 | return OrderMapper.INSTANCE.mapOrderToOrderDto(orderSaved); 34 | } 35 | 36 | private UserDetails getUserDetailsFromUserId(int userId) { 37 | return restTemplate.getForObject("http://USER-SERVICE/user/getUserById/"+userId,UserDetails.class); 38 | } 39 | } 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /OrderService/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8083 3 | 4 | eureka: 5 | client: 6 | service-url: 7 | defaultZone: http://localhost:8761/eureka/ 8 | 9 | 10 | application: 11 | name: ORDER-SERVICE 12 | data: 13 | mongodb: 14 | uri: mongodb://localhost:27017/orderdb 15 | host: localhost 16 | port: 27017 17 | database: orderdb 18 | repositories: 19 | enabled: true 20 | 21 | 22 | -------------------------------------------------------------------------------- /OrderService/src/test/java/com/example/OrderService/OrderServiceApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example.OrderService; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class OrderServiceApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /RestaurantService/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/**/target/ 5 | !**/src/test/**/target/ 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | !**/src/main/**/build/ 30 | !**/src/test/**/build/ 31 | 32 | ### VS Code ### 33 | .vscode/ 34 | -------------------------------------------------------------------------------- /RestaurantService/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mustafaguler3/spring-angular-microservice-app/241ea5e3fbabbe539bc431bea578601e2fe965f2/RestaurantService/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /RestaurantService/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.5/apache-maven-3.9.5-bin.zip 2 | wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar 3 | -------------------------------------------------------------------------------- /RestaurantService/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | org.springframework.boot 7 | spring-boot-starter-parent 8 | 3.1.5 9 | 10 | 11 | com.example 12 | RestaurantService 13 | 0.0.1-SNAPSHOT 14 | RestaurantService 15 | Demo project for Spring Boot 16 | 17 | 17 18 | 2022.0.4 19 | 20 | 21 | 22 | org.springframework.boot 23 | spring-boot-starter-data-jpa 24 | 25 | 26 | org.mapstruct 27 | mapstruct 28 | 1.5.5.Final 29 | 30 | 31 | org.springframework.boot 32 | spring-boot-starter-web 33 | 34 | 35 | org.springframework.cloud 36 | spring-cloud-starter-netflix-eureka-client 37 | 38 | 39 | 40 | com.mysql 41 | mysql-connector-j 42 | runtime 43 | 44 | 45 | org.projectlombok 46 | lombok 47 | true 48 | 49 | 50 | org.springframework.boot 51 | spring-boot-starter-test 52 | test 53 | 54 | 55 | 56 | 57 | 58 | org.springframework.cloud 59 | spring-cloud-dependencies 60 | ${spring-cloud.version} 61 | pom 62 | import 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | org.springframework.boot 71 | spring-boot-maven-plugin 72 | 73 | 74 | 75 | org.projectlombok 76 | lombok 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | -------------------------------------------------------------------------------- /RestaurantService/src/main/java/com/example/RestaurantService/RestaurantServiceApplication.java: -------------------------------------------------------------------------------- 1 | package com.example.RestaurantService; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class RestaurantServiceApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(RestaurantServiceApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /RestaurantService/src/main/java/com/example/RestaurantService/controller/RestaurantController.java: -------------------------------------------------------------------------------- 1 | package com.example.RestaurantService.controller; 2 | 3 | import com.example.RestaurantService.dto.RestaurantDto; 4 | import com.example.RestaurantService.service.RestaurantService; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.http.HttpStatus; 7 | import org.springframework.http.ResponseEntity; 8 | import org.springframework.web.bind.annotation.*; 9 | 10 | import java.util.List; 11 | 12 | @RestController 13 | @RequestMapping("/restaurant") 14 | public class RestaurantController { 15 | 16 | @Autowired 17 | private RestaurantService restaurantService; 18 | 19 | @GetMapping("/getAllRestaurants") 20 | public ResponseEntity> getAllRestaurants(){ 21 | List restaurantDtos = restaurantService.findAllRestaurants(); 22 | return new ResponseEntity<>(restaurantDtos, HttpStatus.OK); 23 | } 24 | 25 | @PostMapping("/addRestaurant") 26 | public ResponseEntity saveRestaurant(@RequestBody RestaurantDto restaurantDto){ 27 | RestaurantDto restaurant = restaurantService.addRestaurant(restaurantDto); 28 | return new ResponseEntity<>(restaurant,HttpStatus.CREATED); 29 | } 30 | 31 | @GetMapping("getById/{id}") 32 | public ResponseEntity findRestaurantById(@PathVariable("id") Integer id){ 33 | return restaurantService.findRestaurantById(id); 34 | } 35 | } 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /RestaurantService/src/main/java/com/example/RestaurantService/domain/Restaurant.java: -------------------------------------------------------------------------------- 1 | package com.example.RestaurantService.domain; 2 | 3 | import jakarta.persistence.Entity; 4 | import jakarta.persistence.GeneratedValue; 5 | import jakarta.persistence.GenerationType; 6 | import jakarta.persistence.Id; 7 | import lombok.AllArgsConstructor; 8 | import lombok.Builder; 9 | import lombok.Data; 10 | import lombok.NoArgsConstructor; 11 | 12 | @Entity 13 | @Data 14 | @AllArgsConstructor 15 | @NoArgsConstructor 16 | @Builder 17 | public class Restaurant { 18 | 19 | @Id 20 | @GeneratedValue(strategy = GenerationType.AUTO) 21 | private int id; 22 | private String name; 23 | private String address; 24 | private String city; 25 | private String description; 26 | 27 | } 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /RestaurantService/src/main/java/com/example/RestaurantService/dto/RestaurantDto.java: -------------------------------------------------------------------------------- 1 | package com.example.RestaurantService.dto; 2 | 3 | import jakarta.persistence.Entity; 4 | import lombok.AllArgsConstructor; 5 | import lombok.Builder; 6 | import lombok.Data; 7 | import lombok.NoArgsConstructor; 8 | 9 | @Entity 10 | @Data 11 | @AllArgsConstructor 12 | @NoArgsConstructor 13 | @Builder 14 | public class RestaurantDto { 15 | private int id; 16 | private String name; 17 | private String address; 18 | private String city; 19 | private String description; 20 | } 21 | -------------------------------------------------------------------------------- /RestaurantService/src/main/java/com/example/RestaurantService/mapper/RestaurantMapper.java: -------------------------------------------------------------------------------- 1 | package com.example.RestaurantService.mapper; 2 | 3 | import com.example.RestaurantService.domain.Restaurant; 4 | import com.example.RestaurantService.dto.RestaurantDto; 5 | import org.mapstruct.Mapper; 6 | import org.mapstruct.factory.Mappers; 7 | 8 | @Mapper 9 | public interface RestaurantMapper { 10 | 11 | RestaurantMapper INTANCE = Mappers.getMapper(RestaurantMapper.class); 12 | 13 | Restaurant mapRestaurantDtoToRestaurant(RestaurantDto restaurantDto); 14 | 15 | RestaurantDto mapRestaurantToRestaurantDto(Restaurant restaurant); 16 | } 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /RestaurantService/src/main/java/com/example/RestaurantService/repository/RestaurantRepository.java: -------------------------------------------------------------------------------- 1 | package com.example.RestaurantService.repository; 2 | 3 | import com.example.RestaurantService.domain.Restaurant; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | import org.springframework.stereotype.Repository; 6 | 7 | @Repository 8 | public interface RestaurantRepository extends JpaRepository { 9 | } 10 | -------------------------------------------------------------------------------- /RestaurantService/src/main/java/com/example/RestaurantService/service/RestaurantService.java: -------------------------------------------------------------------------------- 1 | package com.example.RestaurantService.service; 2 | 3 | import com.example.RestaurantService.dto.RestaurantDto; 4 | import org.springframework.http.ResponseEntity; 5 | 6 | import java.util.List; 7 | 8 | public interface RestaurantService { 9 | List findAllRestaurants(); 10 | 11 | RestaurantDto addRestaurant(RestaurantDto restaurantDto); 12 | 13 | ResponseEntity findRestaurantById(Integer id); 14 | } 15 | -------------------------------------------------------------------------------- /RestaurantService/src/main/java/com/example/RestaurantService/service/impl/RestaurantServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.example.RestaurantService.service.impl; 2 | 3 | import com.example.RestaurantService.domain.Restaurant; 4 | import com.example.RestaurantService.dto.RestaurantDto; 5 | import com.example.RestaurantService.mapper.RestaurantMapper; 6 | import com.example.RestaurantService.repository.RestaurantRepository; 7 | import com.example.RestaurantService.service.RestaurantService; 8 | import org.springframework.beans.factory.annotation.Autowired; 9 | import org.springframework.http.HttpStatus; 10 | import org.springframework.http.ResponseEntity; 11 | import org.springframework.stereotype.Service; 12 | 13 | import java.util.List; 14 | import java.util.Optional; 15 | import java.util.stream.Collectors; 16 | 17 | @Service 18 | public class RestaurantServiceImpl implements RestaurantService { 19 | 20 | @Autowired 21 | private RestaurantRepository restaurantRepository; 22 | 23 | @Override 24 | public List findAllRestaurants() { 25 | List restaurants = restaurantRepository.findAll(); 26 | //map it to list of dtos 27 | List restaurantsDtos = restaurants.stream().map(restaurant -> RestaurantMapper.INTANCE.mapRestaurantToRestaurantDto(restaurant)).collect(Collectors.toList()); 28 | 29 | return restaurantsDtos; 30 | } 31 | 32 | @Override 33 | public RestaurantDto addRestaurant(RestaurantDto restaurantDto) { 34 | Restaurant savedRestaurant = restaurantRepository.save(RestaurantMapper.INTANCE.mapRestaurantDtoToRestaurant(restaurantDto)); 35 | 36 | return RestaurantMapper.INTANCE.mapRestaurantToRestaurantDto(savedRestaurant); 37 | } 38 | 39 | @Override 40 | public ResponseEntity findRestaurantById(Integer id) { 41 | Optional restaurant = restaurantRepository.findById(id); 42 | 43 | if (restaurant.isPresent()){ 44 | return new ResponseEntity<>(RestaurantMapper.INTANCE.mapRestaurantToRestaurantDto(restaurant.get()), HttpStatus.OK); 45 | } 46 | 47 | return new ResponseEntity<>(null,HttpStatus.NOT_FOUND); 48 | } 49 | } 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | -------------------------------------------------------------------------------- /RestaurantService/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8080 3 | 4 | spring: 5 | application: 6 | name: RESTAURANT-SERVICE 7 | datasource: 8 | url: jdbc:mysql://localhost:3306/restaurantDb 9 | username: root 10 | password: 0 11 | driver-class-name: com.mysql.cj.jdbc.Driver 12 | jpa: 13 | hibernate: 14 | ddl-auto: update 15 | show-sql: true 16 | database-platform: org.hibernate.dialect.MySQL8Dialect 17 | -------------------------------------------------------------------------------- /RestaurantService/src/test/java/com/example/RestaurantService/RestaurantServiceApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example.RestaurantService; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class RestaurantServiceApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /UserService/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/**/target/ 5 | !**/src/test/**/target/ 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | !**/src/main/**/build/ 30 | !**/src/test/**/build/ 31 | 32 | ### VS Code ### 33 | .vscode/ 34 | -------------------------------------------------------------------------------- /UserService/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mustafaguler3/spring-angular-microservice-app/241ea5e3fbabbe539bc431bea578601e2fe965f2/UserService/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /UserService/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.5/apache-maven-3.9.5-bin.zip 2 | wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar 3 | -------------------------------------------------------------------------------- /UserService/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | org.springframework.boot 7 | spring-boot-starter-parent 8 | 3.1.5 9 | 10 | 11 | com.example 12 | UserService 13 | 0.0.1-SNAPSHOT 14 | UserService 15 | Demo project for Spring Boot 16 | 17 | 17 18 | 2022.0.4 19 | 20 | 21 | 22 | org.springframework.boot 23 | spring-boot-starter-data-jpa 24 | 25 | 26 | org.mapstruct 27 | mapstruct 28 | 1.5.5.Final 29 | 30 | 31 | org.springframework.boot 32 | spring-boot-starter-web 33 | 34 | 35 | org.springframework.cloud 36 | spring-cloud-starter-netflix-eureka-client 37 | 38 | 39 | 40 | com.mysql 41 | mysql-connector-j 42 | runtime 43 | 44 | 45 | org.projectlombok 46 | lombok 47 | true 48 | 49 | 50 | org.springframework.boot 51 | spring-boot-starter-test 52 | test 53 | 54 | 55 | 56 | 57 | 58 | org.springframework.cloud 59 | spring-cloud-dependencies 60 | ${spring-cloud.version} 61 | pom 62 | import 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | org.springframework.boot 71 | spring-boot-maven-plugin 72 | 73 | 74 | 75 | org.projectlombok 76 | lombok 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | -------------------------------------------------------------------------------- /UserService/src/main/java/com/example/UserService/UserServiceApplication.java: -------------------------------------------------------------------------------- 1 | package com.example.UserService; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class UserServiceApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(UserServiceApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /UserService/src/main/java/com/example/UserService/controller/UserController.java: -------------------------------------------------------------------------------- 1 | package com.example.UserService.controller; 2 | 3 | import com.example.UserService.dto.UserDto; 4 | import com.example.UserService.service.UserService; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.http.HttpStatus; 7 | import org.springframework.http.ResponseEntity; 8 | import org.springframework.web.bind.annotation.*; 9 | 10 | @RestController 11 | @RequestMapping("/user") 12 | public class UserController { 13 | 14 | @Autowired 15 | UserService userService; 16 | 17 | @PostMapping("/addUser") 18 | public ResponseEntity addUser(@RequestBody UserDto userDto){ 19 | UserDto user = userService.addUser(userDto); 20 | return new ResponseEntity<>(user, HttpStatus.CREATED); 21 | } 22 | 23 | @GetMapping("/getUserById/{userId}") 24 | public ResponseEntity getUserDetailsById(@PathVariable Integer userId){ 25 | return userService.getUserDetails(userId); 26 | } 27 | } 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /UserService/src/main/java/com/example/UserService/dto/UserDto.java: -------------------------------------------------------------------------------- 1 | package com.example.UserService.dto; 2 | 3 | import lombok.AllArgsConstructor; 4 | import lombok.Data; 5 | import lombok.NoArgsConstructor; 6 | 7 | @Data 8 | @AllArgsConstructor 9 | @NoArgsConstructor 10 | public class UserDto { 11 | private int userId; 12 | private String username; 13 | private String password; 14 | private String address; 15 | private String city; 16 | } 17 | -------------------------------------------------------------------------------- /UserService/src/main/java/com/example/UserService/entity/User.java: -------------------------------------------------------------------------------- 1 | package com.example.UserService.entity; 2 | 3 | import jakarta.persistence.Entity; 4 | import jakarta.persistence.GeneratedValue; 5 | import jakarta.persistence.GenerationType; 6 | import jakarta.persistence.Id; 7 | import lombok.AllArgsConstructor; 8 | import lombok.Builder; 9 | import lombok.Data; 10 | import lombok.NoArgsConstructor; 11 | 12 | @Data 13 | @NoArgsConstructor 14 | @AllArgsConstructor 15 | @Entity 16 | @Builder 17 | public class User { 18 | 19 | @Id 20 | @GeneratedValue(strategy = GenerationType.AUTO) 21 | private int userId; 22 | private String username; 23 | private String password; 24 | private String address; 25 | private String city; 26 | } 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /UserService/src/main/java/com/example/UserService/mapper/UserMapper.java: -------------------------------------------------------------------------------- 1 | package com.example.UserService.mapper; 2 | 3 | import com.example.UserService.dto.UserDto; 4 | import com.example.UserService.entity.User; 5 | import org.mapstruct.Mapper; 6 | import org.mapstruct.factory.Mappers; 7 | 8 | @Mapper 9 | public interface UserMapper { 10 | 11 | UserMapper INSTANCE = Mappers.getMapper(UserMapper.class); 12 | 13 | User mapUserDtoToUser(UserDto userDto); 14 | 15 | UserDto mapUserToUserDto(User user); 16 | } 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /UserService/src/main/java/com/example/UserService/repository/UserRepository.java: -------------------------------------------------------------------------------- 1 | package com.example.UserService.repository; 2 | 3 | import com.example.UserService.entity.User; 4 | import org.springframework.data.jpa.repository.JpaRepository; 5 | import org.springframework.stereotype.Repository; 6 | 7 | @Repository 8 | public interface UserRepository extends JpaRepository { 9 | } 10 | -------------------------------------------------------------------------------- /UserService/src/main/java/com/example/UserService/service/UserService.java: -------------------------------------------------------------------------------- 1 | package com.example.UserService.service; 2 | 3 | import com.example.UserService.dto.UserDto; 4 | import org.springframework.http.ResponseEntity; 5 | 6 | public interface UserService { 7 | 8 | UserDto addUser(UserDto userDto); 9 | ResponseEntity getUserDetails(Integer userId); 10 | 11 | } 12 | -------------------------------------------------------------------------------- /UserService/src/main/java/com/example/UserService/service/impl/UserServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.example.UserService.service.impl; 2 | 3 | import com.example.UserService.dto.UserDto; 4 | import com.example.UserService.entity.User; 5 | import com.example.UserService.mapper.UserMapper; 6 | import com.example.UserService.repository.UserRepository; 7 | import com.example.UserService.service.UserService; 8 | import org.springframework.beans.factory.annotation.Autowired; 9 | import org.springframework.http.HttpStatus; 10 | import org.springframework.http.ResponseEntity; 11 | import org.springframework.stereotype.Service; 12 | 13 | import java.util.Optional; 14 | 15 | @Service 16 | public class UserServiceImpl implements UserService { 17 | 18 | @Autowired 19 | UserRepository userRepository; 20 | 21 | @Override 22 | public UserDto addUser(UserDto userDto) { 23 | User savedUser = userRepository.save(UserMapper.INSTANCE.mapUserDtoToUser(userDto)); 24 | return UserMapper.INSTANCE.mapUserToUserDto(savedUser); 25 | } 26 | 27 | @Override 28 | public ResponseEntity getUserDetails(Integer userId) { 29 | Optional fetchUser = userRepository.findById(userId); 30 | 31 | if (fetchUser.isPresent()){ 32 | return new ResponseEntity<>(UserMapper.INSTANCE.mapUserToUserDto(fetchUser.get()), HttpStatus.OK); 33 | } 34 | 35 | return new ResponseEntity<>(null,HttpStatus.NOT_FOUND); 36 | } 37 | } 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /UserService/src/main/resources/application.yaml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8081 3 | 4 | spring: 5 | application: 6 | name: USER-SERVICE 7 | datasource: 8 | url: jdbc:mysql://localhost:3306/userDb 9 | username: root 10 | password: 0 11 | driver-class-name: com.mysql.cj.jdbc.Driver 12 | jpa: 13 | hibernate: 14 | ddl-auto: update 15 | show-sql: true 16 | database-platform: org.hibernate.dialect.MySQL8Dialect 17 | 18 | -------------------------------------------------------------------------------- /UserService/src/test/java/com/example/UserService/UserServiceApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example.UserService; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class UserServiceApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | --------------------------------------------------------------------------------