This is the repository for the "Technical Drawings Backend" Java Spring Boot project. The application is intended to be run along with a matching frontend application that consumes the provided API.
You can use the "Technical Drawings Frontend" Angular frontend application for this purpose.
Before you begin, ensure you have met the following requirements:
- JDK 21 or later installed
- Tesseract OCR Engine installed
You can use any JDK build, e.g. Temurin: https://adoptium.net/de/temurin/releases/
To install Tesseract, follow the instructions on https://tesseract-ocr.github.io/tessdoc/Installation.html
Once you have the prerequisites installed, you can set up the project on your local machine.
- Clone the repository or download the project to your local machine.
- Navigate to the project directory in the command prompt or terminal.
Use the following command inside the project directory on a Linux/WSL system:
./gradlew bootRun
If you are using a Windows system, use this command instead:
gradlew.bat bootRun
This will start the application on the default port 8080. After starting the application, the OpenAPI documentation can be found here:
http://localhost:8080/api-doc/index.html
To create a production-ready build of your application, use:
./gradlew build
This will compile, test, and package the application into a runnable JAR file inside the build/libs
directory which can be deployed on the production environment.
- Application configuration can be adjusted in the
application.properties
in theconfig
directory. - If the file does not exist yet, create it by copying the example
application.properties.dist
file inside the directory.