Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/data/dictionaries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ export enum Library {
SPRING_BOOT = 'SPRING_BOOT',
SPRING_DATA_JPA = 'SPRING_DATA_JPA',
LOMBOK = 'LOMBOK',
QUARKUS = 'QUARKUS',

// .NET libraries
ENTITY_FRAMEWORK = 'ENTITY_FRAMEWORK',
Expand Down Expand Up @@ -251,7 +252,7 @@ export const stackToLibraryMap: StackToLibraryMap = {
[Stack.STYLING]: [Library.TAILWIND, Library.STYLED_COMPONENTS, Library.SCSS],
[Stack.NODE]: [Library.EXPRESS, Library.NEST, Library.FASTIFY],
[Stack.PYTHON]: [Library.DJANGO, Library.FLASK, Library.FASTAPI],
[Stack.JAVA]: [Library.SPRING_BOOT, Library.SPRING_DATA_JPA, Library.LOMBOK],
[Stack.JAVA]: [Library.SPRING_BOOT, Library.SPRING_DATA_JPA, Library.LOMBOK, Library.QUARKUS],
[Stack.DOTNET]: [Library.ENTITY_FRAMEWORK, Library.ASP_NET],
[Stack.GO]: [Library.GIN, Library.ECHO],
[Stack.SQL]: [Library.POSTGRES, Library.MYSQL, Library.SQLSERVER],
Expand Down
10 changes: 10 additions & 0 deletions src/data/rules/backend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,16 @@ export const backendRules: LibraryRulesMap = {
'Use `Optional` to avoid `NullPointerException`',
],

[Library.QUARKUS]: [
'Use CDI annotations (`@Inject`, `@ApplicationScoped`, etc.) for dependency injection following Jakarta EE standards',
'Leverage Quarkus extensions and optimizations for GraalVM native builds to reduce startup time and memory usage',
'Implement reactive programming with Mutiny or Vert.x for non-blocking I/O operations for {{high_load_endpoints}}',
'Use MicroProfile Config (`@ConfigProperty`) for type-safe configuration injection from application.properties',
'Implement health checks and metrics with MicroProfile Health and Metrics for {{critical_services}}',
'Structure your application with clear separation of resources, services, and repositories following RESTful conventions',
'Use Quarkus Dev Mode with live reload for faster development cycles and debugging',
],

[Library.SPRING_DATA_JPA]: [
'Define repositories as interfaces extending `JpaRepository` or `CrudRepository`',
'Never expose JPA entities in API responses – always map them to DTOs',
Expand Down
1 change: 1 addition & 0 deletions src/i18n/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ export const libraryTranslations: Record<Library, string> = {
SPRING_BOOT: 'Spring',
SPRING_DATA_JPA: 'Spring Data JPA',
LOMBOK: 'Lombok',
QUARKUS: 'Quarkus',

// .NET libraries
ENTITY_FRAMEWORK: 'Entity Framework',
Expand Down
Loading