Skip to content

Repository files navigation

Jakarta EE API

Project Assumptions

Jakarta EE template REST API.

Technology Stack

Back-end

  • Java.
  • Jakarta EE (Open Liberty).
  • Gradle Kotlin DSL.
  • MongoDB.
  • Redis (Liberty session cache with Redisson).
  • Nimbus JOSE + JWT.
  • JUnit.
  • Mockito.
  • Lombok.

Authentication

  • Identity provider: Keycloak (realm jakarta-ee-api); the application never sees a password.
  • Pattern: BFF; the tokens stay in the server-side session, the browser holds only a session cookie.
  • Session store: Redis (Open Liberty session cache with Redisson).
  • JWT: verified by a JAX-RS filter with Nimbus JOSE + JWT; @RolesAllowed decides access.
  • Details: Authentication.

Core back-end

  • Gradle multi-module build system.
  • The application has an exception handling mechanism (RFC 9457 problem details).
  • The application has a logging mechanism.
  • The application has a dedicated configuration file.
  • The application has RBAC (Role Based Access Control).
  • And many other features that can be found in the application code.

Other

  • Docker for development environment.
  • PMD for static code analysis.
  • SpotBugs for static code analysis.
  • JSpecify for null-safety annotations.
  • NullAway for null-safety checks.
  • Error Prone for static code analysis.
  • Spotless for code formatting.

Documentation

  • Contents – every document in the repository, the module it belongs to, and what it covers.
  • Glossary – every term the docs use, and where it is explained.
  • Standards – the RFCs and specifications the code implements or depends on.