You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+30-8
Original file line number
Diff line number
Diff line change
@@ -9,21 +9,40 @@ When developing **real-world** Spring REST APIs and microservices, you face many
9
9
1. How to handle _validations_ and _exceptions_ in a cross functional manner and send precise errors to the client.
10
10
1. How exactly to support multiple _social sign up/in_, using _OpenID Connect_ or _OAuth2_ providers such as _Google_ and _Facebook_.
11
11
1. How to code a robust user module (with features like _sign up_, _sign in_, _verify email_, _social sign up/in_, _update profile_, _forgot password_, _change password_, _change email_, _token authentication_ etc.) and share it across all your applications.
12
-
1._What would be good ways to test your API_.
12
+
1. How to _secure microservices_ effeciently, using long-lived and short-lived JWTs.
13
+
1. What would be good ways to _test your API_.
13
14
1. How to do _Captcha validation_.
14
15
1. How to properly organize _application properties_.
15
16
1. How to use _PATCH_ and _JsonPatch_ to handle partial updates correctly.
16
17
1. How to do all the above reactively, using WebFlux and WebFlux security.
17
18
18
19
Coding all this rightly needs in-depth knowledge of Spring. It also takes a lot of development time and effort, and needs to be properly maintained as new versions of Spring modules come out.
19
20
20
-
**Spring Lemon** relieves you of all this burden. It's a tiny open source library holding all these common configuration and components, and also a production grade user module with all the abovementioned features.
21
+
**Spring Lemon** relieves you of all this burden. It's a set of configurable and extensible libraries, providing all above features. Use these to develop quality reactive or non-reactive monolith or microservices applications easily.
21
22
22
-
Even if you don't plan to use Spring Lemon, it's a good example application to learn from, because it showcases the essential best practices for developing elegant web services and microservices using Spring.
23
+
Even if you don't plan to use Spring Lemon, it's a good example to learn from, because it showcases the essential best practices for developing elegant web services and microservices using Spring.
23
24
24
25
Most Spring Boot applications can use Spring Lemon straight away, with some simple configurations. But, if you don't find it suitable for your application, feel free to fork it, or just roll out your own library by learning its patterns and practices. Better yet, be a contributor!
25
26
26
-
Watch [this video tutorial](https://www.naturalprogrammer.com/p/spring-lemon-restful-web-services-development) or read [this quick starter guide](https://github.com/naturalprogrammer/spring-lemon/wiki/Getting-Started-With-Spring-Lemon) for getting started.
27
+
Read [this quick starter guide](https://github.com/naturalprogrammer/spring-lemon/wiki/Getting-Started-With-Spring-Lemon) or watch [this video tutorial](https://www.naturalprogrammer.com/p/spring-lemon-restful-web-services-development) for getting started.
28
+
29
+
## Libraries hierarchy
30
+
31
+
***spring-lemon-exceptions**: Useful for elegant exception handling and validation in any Spring project
32
+
***spring-lemon-commons**: Common for all things below
33
+
* **spring-lemon-commons-web**: For developing Spring Web (non-reactive) microservices
34
+
* **spring-lemon-commons-jpa**: For developing Spring Web (non-reactive) JPA microservices
35
+
* **spring-lemon-jpa**: For developing Spring Web (non-reactive) JPA monolith or auth-microservice
36
+
* **spring-lemon-commons-reactive**: For developing Spring WebFlux (reactive) microservices
37
+
* **spring-lemon-commons-mongo**: For developing Spring WebFlux (reactive) MongoDB microservices
38
+
* **spring-lemon-rective**: For developing Spring WebFlux (reactive) MongoDB monolith or auth-microservice
*[Demo non-reactive microservices](https://github.com/naturalprogrammer/np-microservices-sample-01) and its [configuration repository](https://github.com/naturalprogrammer/np-microservices-sample-01-config)
45
+
*[Demo reactive microservices](https://github.com/naturalprogrammer/np-microservices-sample-02) and its [configuration repository](https://github.com/naturalprogrammer/np-microservices-sample-02-config)
27
46
28
47
## Documentation and Resources
29
48
@@ -33,10 +52,13 @@ Watch [this video tutorial](https://www.naturalprogrammer.com/p/spring-lemon-res
1._Example applications_ — [Non-reactive](https://github.com/naturalprogrammer/spring-lemon/tree/master/lemon-demo-jpa) and [reactive](https://github.com/naturalprogrammer/spring-lemon/tree/master/lemon-demo-reactive) sample applications using Spring Lemon. Quite similar to the one developed in the above [getting started guide](https://github.com/naturalprogrammer/spring-lemon/wiki/Getting-Started-With-Spring-Lemon), but additionally have automated tests.
37
-
1._[API documentation](https://documenter.getpostman.com/view/305915/RVu2mqEH)_ of the above application.
38
-
1._[Example AngularJS front-end application](https://github.com/naturalprogrammer/spring-lemon/tree/master/lemon-demo-angularjs)_ — A sample AngularJS 1.x front-end. It'll work both for the application developed in the above [getting started guide](https://github.com/naturalprogrammer/spring-lemon/wiki/Getting-Started-With-Spring-Lemon) as well as the [Lemon Demo application](https://github.com/naturalprogrammer/spring-lemon/tree/master/lemon-demo-jpa). See the [Getting Started Guide](https://github.com/naturalprogrammer/spring-lemon/wiki/Getting-Started-With-Spring-Lemon) on how to use it.
39
-
1._[Example reactive microservices](https://github.com/naturalprogrammer/np-microservices-sample-02) using Spring Lemon, and its [configuration repo](https://github.com/naturalprogrammer/np-microservices-sample-02-config)_ — A sample reactive microservices application depicting how easy it is to develop reactive microservices using Spring Lemon.
*[Demo non-reactive microservices](https://github.com/naturalprogrammer/np-microservices-sample-01) and its [configuration repository](https://github.com/naturalprogrammer/np-microservices-sample-01-config)
59
+
*[Demo reactive microservices](https://github.com/naturalprogrammer/np-microservices-sample-02) and its [configuration repository](https://github.com/naturalprogrammer/np-microservices-sample-02-config)
60
+
1._[API documentation](https://documenter.getpostman.com/view/305915/RVu2mqEH)_ of the above applications.
61
+
1._[Example AngularJS front-end application](https://github.com/naturalprogrammer/spring-lemon/tree/master/lemon-demo-angularjs)_ — A sample AngularJS 1.x front-end. It'll work for the application developed in the above [getting started guide](https://github.com/naturalprogrammer/spring-lemon/wiki/Getting-Started-With-Spring-Lemon) as well all the above example applications. See the [Getting Started Guide](https://github.com/naturalprogrammer/spring-lemon/wiki/Getting-Started-With-Spring-Lemon) on how to use it.
40
62
1._[Spring Framework Recipes For Real World Application Development](https://www.naturalprogrammer.com/p/spring-framework-book-of-best-practices)_ — a live book discussing key real-world topics on developing Spring applications, APIs and microservoces. Includes many Spring Lemon topics. [Click here](https://www.naturalprogrammer.com/p/spring-framework-book-of-best-practices) to get it now for FREE!
41
63
1. Video tutorials coming soon:
42
64
1. Spring Framework 5 REST API Development — A Complete Blueprint For Real-World Developers
0 commit comments