-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Java SDK
in configu
#251
Comments
Shall we opt for Maven to handle our dependency management? If there's a consensus, I'll proceed with configuring the project using Maven. |
@Sadaf-A,thank you for taking the initiative on the Java SDK for Configu. Your insights and contributions are invaluable. To address your query regarding Maven: While I'm not deeply ingrained in the Java ecosystem, I understand that both Maven and Gradle are popular tools for dependency management. Maven is both a dependency management tool and a central repository to publish dependencies, while Gradle is another tool primarily known for its build capabilities and dependency management. If we're looking at the requirements:
|
@rannn505 Thanks for the inputs. You're right both As for string validation I looked into it and unfortunately, as of now there is no library as extensive as We should definitely use As for Development dependencies I have a few suggestions For maintaining standard code format in java we can use I would be honest I haven't much experience with unit testing in java but we can surely use we can use /**
* This is a sample method.
*
* @param a The first number to add.
* @param b The second number to add.
* @return The product of the two numbers.
*/
public int multiply(int a, int b) {
return a * b;
} As our codebase grows we may need to reconsider our choices and review them regularly. |
@Sadaf-A I see the string validation as the major concern here, I will try to look for alternatives. Also in the background I will promote an issue of maintaining a self validation RegEx library so we can dump this validator dep. |
Adding to @Sadaf-A comment We can use Spring Boot ( one of the most popular framework in Java) Spring WebClient :Building a modern, reactive, and non-blocking application, It's ideal for high-concurrency and asynchronous use cases. The alternative to Validator.js in the Java ecosystem for server-side validation is typically to use a combination of Java's built-in validation capabilities and libraries such as Apache common validator n Hibernate Validator Mustache.java is a simple and flexible templating engine that can work well in many scenarios. It is particularly well-suited for applications where you want to keep templates clean and focused on rendering data. There are several other templating engines available for Java that you can consider, depending on your specific needs. Thymeleaf: Thymeleaf is a modern and feature-rich templating engine that integrates seamlessly with Spring Framework, including Spring Boot. It offers a powerful and expressive syntax for building dynamic web pages. Thymeleaf is known for its natural templating and easy integration with Spring's model-view-controller (MVC) architecture. FreeMarker: FreeMarker is a robust, versatile templating engine that provides a template language that is both readable and extensible. It's often used with Spring applications and offers good support for conditionals, loops, and macros. Lombok: We will be dependent on Lombok for further updates; A year back there was an issue with Lombok when projects wanted to migrate to Java 16 but Lomok was not supporting it Jackson: Spring boot has support for this; Testing: for unit testing we can use Mockito and Junit Documentation:Swagger/OpenAPI: If Java application includes RESTful APIs, we can use Swagger/OpenAPI to document API endpoints. |
Hey, @erzohrakhan I want to express my gratitude for your valuable assistance. Java isn't my strongest suit, so your guidance has been a real help. I'm looking forward to working together to create the best implementation possible. I agree that Spring Boot is a must, and I appreciate the heads-up about Lombok's compatibility with the latest Java versions as I was not aware of that and it would've been a severe issue. After checking out Apache Common Validator and Hibernate Validator, I'm not sure if they cover all the specific validation needs in the I would urge you to join the configu discord server. Thanks again for your support and collaboration. Best Regards, |
@Sadaf-A Yes, you are right we don't have all the validations in Java, Apache validator and Hibernate; |
Description
Presently,
configu
extends its support to developers usingPython
,TypeScript
, andGo
. However, we're excited to introduce a new addition: aJava SDK
.Motivation
Adding support for a
Java SDK
for configu would greatly expand the accessibility and usability of the tool.The text was updated successfully, but these errors were encountered: