This folder contains a Java sample project demonstrating how to use Lacuna Software's Biometric APIs/SDKs with Spring Boot.
For samples in other languages, see the repository root.
The sample uses Spring Boot (Java 21). The main class is DemoApplication.java.
-
Clone the repository:
git clone https://github.com/LacunaSoftware/RestBioSamples.git
-
Navigate to the Java backend folder:
cd backend/java -
Build and run the project with Gradle:
gradle bootRun
-
The API will be available at http://localhost:5078.
This sample uses the Lacuna REST PKI Core Client library (RestPkiNGJavaClient) to interact with Lacuna's biometric APIs. Check the GitHub repository for the latest version and additional usage instructions.
To run a frontend sample, go to the repository root and check the available frontend options in the main README.
Choose a frontend, follow its instructions, and it will run on port 4200.
- Java 21 or newer
- Gradle 8.0+
src/main/java/com/lacunasoftware/demo/controllers/– REST API endpointsconfiguration/– Application configurationDemoApplication.java– Application entry point
src/main/resources/application.json– Application configuration
Key dependencies:
- Spring Boot 3.x – Modern Spring Boot framework
- Spring Web MVC – REST API support
- Spring Boot DevTools – Developer tools
- Lacuna REST PKI Core Client – Biometric APIs integration
Note: Update the version numbers in
build.gradleas needed.