From ebd76b9d8b7a8e5392e6037f79d7570940c8bafd Mon Sep 17 00:00:00 2001 From: Laur Ivan Date: Sat, 3 Dec 2022 20:28:06 +0100 Subject: [PATCH] chore: More updates --- angular.md | 10 ++++++++++ java.md | 29 +++++++++++++++++++++++++++++ nodejs.md | 23 +++++++++++++++++++++++ 3 files changed, 62 insertions(+) diff --git a/angular.md b/angular.md index 7ab95a4..873630e 100644 --- a/angular.md +++ b/angular.md @@ -16,16 +16,23 @@ ## Concepts - [Angular Service — Component communication](https://medium.com/@enriqueoriol/angular-service-component-communication-4933782af52c) +- [Component Interaction](https://angular.io/guide/component-interaction) ### Templates and rendering - [ngIf](https://angular.io/api/common/NgIf) - [ngx-markdown](https://openbase.com/js/ngx-markdown) +- [ngFor](https://angular.io/api/common/NgFor#description) + +- SO [How do I refresh an Angular HTTP call when using a timer?](https://stackoverflow.com/q/50274959/515948) ### Forms - [FormControl usage notes](https://angular.io/api/forms/FormControl#usage-notes) - [Radio Buttons in Angular](https://www.delftstack.com/howto/angular/angular-radio-buttons/) +- [Reactive forms - Adding a basic form control](https://angular.io/guide/reactive-forms#adding-a-basic-form-control) + +- SO [How to call rest api on button click in Angular](https://stackoverflow.com/q/58896694/515948) ### Auth @@ -34,6 +41,9 @@ ### Networking - [Angular HTTP GET request with parameters example](https://www.angularjswiki.com/httpclient/get-params/#creating-params-using-httpparams-fromobject) +- [Building a REST-Backend for Angular with Node.js & Express](https://malcoded.com/posts/angular-backend-express/) +- [Connect your Angular App with your Backend using the Http-Client](https://malcoded.com/posts/angular-fundamentals-http/) +- SO [Angular 6 http post request with x-www-form-urlencoded data](https://stackoverflow.com/q/51605542/515948) ## Frameworks diff --git a/java.md b/java.md index 1c6a600..ec978a5 100644 --- a/java.md +++ b/java.md @@ -4,13 +4,17 @@ - [Annotation](#annotation) - [Documentation](#documentation) - [SpringBoot](#springboot) + - [SpringBoot-specific annotations](#springboot-specific-annotations) + - [Examples](#examples) - [API](#api) - [Multipart and files](#multipart-and-files) - [Routing](#routing) + - [CORS](#cors) - [Exceptions](#exceptions) - [OpenAPI 3](#openapi-3) - [Settings](#settings) - [Errors](#errors) + - [Security](#security) - [IntelliJ Idea](#intellij-idea) - [Plugins](#plugins) @@ -27,14 +31,25 @@ ## SpringBoot +### SpringBoot-specific annotations + +- [Spring @Configuration annotation example](https://howtodoinjava.com/spring-core/spring-configuration-annotation/) +- [Spring @RequestParam Annotation](https://www.baeldung.com/spring-request-param) + +### Examples + +- [Spring Boot + Angular 13: CRUD example (full stack)](https://www.bezkoder.com/spring-boot-angular-13-crud/) + ### API #### Multipart and files - [Spring Component Scanning](https://www.baeldung.com/spring-component-scanning) - [Using Multipart Form Data with Spring Boot](https://blog.classkick.com/using-multipart-form-data-with-spring-boot-3216d67ae2b9) +- [How to upload multiple files in Java Spring Boot](https://www.bezkoder.com/spring-boot-upload-multiple-files/), also [here](https://www.bezkoder.com/spring-boot-file-upload/) and [angular side](https://www.bezkoder.com/angular-12-spring-boot-file-upload/). Source code [here](https://github.com/bezkoder/spring-boot-upload-multipart-files) - SO [Spring Boot: How to include a configuration class that is not in my base package?](https://stackoverflow.com/q/60097674/515948) - SO [only one MultipartFile object populated when using an java.util.Optional MutipartFile array or list @RequestParam [SPR-15919]](https://github.com/spring-projects/spring-framework/issues/20473) +- SO [REST multipart mixed request (file+json) with Spring](https://stackoverflow.com/q/38207049/515948) #### Routing @@ -42,12 +57,20 @@ - [Spring Boot @RestController](https://zetcode.com/springboot/restcontroller/) - SO [Best practice to send response in spring boot](https://stackoverflow.com/q/55789337/515948) - SO [How to show all available routes in Spring?](https://stackoverflow.com/q/3686196/515948) +- SO [Spring - When use DELETE with json returns Bad Request](https://stackoverflow.com/q/65554372/515948) +- SO [Spring: How to get parameters from POST body?](https://stackoverflow.com/q/22163397/515948) + +##### CORS + +- [Class CorsConfiguration](https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/web/cors/CorsConfiguration.html) +- [Annotation Type PropertySource](https://docs.spring.io/spring-framework/docs/3.1.x/javadoc-api/org/springframework/context/annotation/PropertySource.html) #### Exceptions - [Problem Details for HTTP APIs](https://www.rfc-editor.org/rfc/rfc7807) - [Structured error messages for HTTP APIs](https://blog.frankel.ch/structured-errors-http-apis/) - [Spring Boot – Exception Handling](https://www.geeksforgeeks.org/spring-boot-exception-handling/) +- [Spring Boot - Exception Handling](https://www.tutorialspoint.com/spring_boot/spring_boot_exception_handling.htm) ### OpenAPI 3 @@ -63,6 +86,7 @@ ### Settings - [The settings.xml File in Maven](https://www.baeldung.com/maven-settings-xml) +- [Spring – Read file from resources folder](https://mkyong.com/spring/spring-read-file-from-resources-folder/) ### Errors @@ -70,6 +94,11 @@ - GH [Java 9: Avoid illegal reflective access warning for SpEL method reference](https://github.com/spring-projects/spring-framework/issues/21385) - [ErrorMvsAutoConfiguration](https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/servlet/error/ErrorMvcAutoConfiguration.java) +### Security + +- [Spring Security for Spring Boot Integration Tests](https://www.baeldung.com/spring-security-integration-tests?__s=t36toizdg1w2mu6z4394) +- GH [Spring Security and Angular](https://github.com/spring-guides/tut-spring-security-and-angular-js/tree/master) + ## IntelliJ Idea ### Plugins diff --git a/nodejs.md b/nodejs.md index fa44b04..2b91966 100644 --- a/nodejs.md +++ b/nodejs.md @@ -3,6 +3,10 @@ - [System information](#system-information) - [Release management](#release-management) +- [ExpressJS](#expressjs) +- [Tools](#tools) + - [LoDash](#lodash) + - [RxJS](#rxjs) @@ -14,3 +18,22 @@ - [Conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) - [How to regenerate changelog using standard-version](https://lukasznojek.com/blog/2020/03/how-to-regenerate-changelog-using-standard-version/) + +## ExpressJS + +- [Handling POST Requests with Express](https://masteringjs.io/tutorials/express/post) +- [lowdb](https://www.npmjs.com/package/lowdb) +- [Routing](http://expressjs.com/en/guide/routing.html) + +- SO [Express req.body is empty](https://stackoverflow.com/q/62634298/515948) +- SO [HTTP PUT request in Expressjs](https://stackoverflow.com/questions/53156643/http-put-request-in-expressjs) + +## Tools + +### LoDash + +- [_.get(object, path, [defaultValue])](https://lodash.com/docs/4.17.15#get) + +### RxJS + +- [RxJS](https://rxjs.dev/)