Skip to content

Commit e679077

Browse files
Add Quarkus configuration (#47)
1 parent b24b601 commit e679077

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

src/data/dictionaries.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ export enum Library {
104104
SPRING_BOOT = 'SPRING_BOOT',
105105
SPRING_DATA_JPA = 'SPRING_DATA_JPA',
106106
LOMBOK = 'LOMBOK',
107+
QUARKUS = 'QUARKUS',
107108

108109
// .NET libraries
109110
ENTITY_FRAMEWORK = 'ENTITY_FRAMEWORK',
@@ -251,7 +252,7 @@ export const stackToLibraryMap: StackToLibraryMap = {
251252
[Stack.STYLING]: [Library.TAILWIND, Library.STYLED_COMPONENTS, Library.SCSS],
252253
[Stack.NODE]: [Library.EXPRESS, Library.NEST, Library.FASTIFY],
253254
[Stack.PYTHON]: [Library.DJANGO, Library.FLASK, Library.FASTAPI],
254-
[Stack.JAVA]: [Library.SPRING_BOOT, Library.SPRING_DATA_JPA, Library.LOMBOK],
255+
[Stack.JAVA]: [Library.SPRING_BOOT, Library.SPRING_DATA_JPA, Library.LOMBOK, Library.QUARKUS],
255256
[Stack.DOTNET]: [Library.ENTITY_FRAMEWORK, Library.ASP_NET],
256257
[Stack.GO]: [Library.GIN, Library.ECHO],
257258
[Stack.SQL]: [Library.POSTGRES, Library.MYSQL, Library.SQLSERVER],

src/data/rules/backend.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,16 @@ export const backendRules: LibraryRulesMap = {
7575
'Use `Optional` to avoid `NullPointerException`',
7676
],
7777

78+
[Library.QUARKUS]: [
79+
'Use CDI annotations (`@Inject`, `@ApplicationScoped`, etc.) for dependency injection following Jakarta EE standards',
80+
'Leverage Quarkus extensions and optimizations for GraalVM native builds to reduce startup time and memory usage',
81+
'Implement reactive programming with Mutiny or Vert.x for non-blocking I/O operations for {{high_load_endpoints}}',
82+
'Use MicroProfile Config (`@ConfigProperty`) for type-safe configuration injection from application.properties',
83+
'Implement health checks and metrics with MicroProfile Health and Metrics for {{critical_services}}',
84+
'Structure your application with clear separation of resources, services, and repositories following RESTful conventions',
85+
'Use Quarkus Dev Mode with live reload for faster development cycles and debugging',
86+
],
87+
7888
[Library.SPRING_DATA_JPA]: [
7989
'Define repositories as interfaces extending `JpaRepository` or `CrudRepository`',
8090
'Never expose JPA entities in API responses – always map them to DTOs',

src/i18n/translations.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ export const libraryTranslations: Record<Library, string> = {
9797
SPRING_BOOT: 'Spring',
9898
SPRING_DATA_JPA: 'Spring Data JPA',
9999
LOMBOK: 'Lombok',
100+
QUARKUS: 'Quarkus',
100101

101102
// .NET libraries
102103
ENTITY_FRAMEWORK: 'Entity Framework',

0 commit comments

Comments
 (0)