SentinelIRIS
This project is a Spring Boot application that connects to an InterSystems IRIS database.
It demonstrates the following scenario:
- Tracking containers, cargo, or vaccines (cold chain).
- Use sensors that collect data (temperature, humidity, location) and send it to a Java backend.
- IRIS stores the data, maintains a history, allows for quick queries, and issues alerts if something goes outside acceptable limits.
- Java can perform real-time or near-real-time processing, trend analysis, and anomaly detection.
Prerequisites
- Java 17 or newer
- Docker (for running IRIS)
Running IRIS
Using Docker
- Run the following command in your terminal:
docker run --name my-iris -d --publish 9091:1972 --publish 9092:52773 intersystems/iris-community:latest-cd
- This will start IRIS.
- You need to open its interface:
- Open your web browser and go to
http://localhost:9091/csp/sys/UtilHome.csp
.
- Log in with:
- Username:
_SYSTEM
- Password:
SYS
- You’ll be requested to change your password.
- Then update this password in Repository.java file.
Creating the tables
- Go to init.sql file and copy its content.
- In the IRIS web interface, go to “System Explorer” > “SQL”.
- Paste the SQL commands and execute them to create the necessary tables.
Running the Project
Using Gradle Wrapper
- Open a terminal in the project root directory.
- Run the following command:
- On Windows:
gradlew.bat bootRun
- On macOS/Linux:
./gradlew bootRun
- The application will start on the default port (usually 8080).
Troubleshooting
- Ensure Java and Gradle are installed and available in your PATH.
- For Docker Compose, ensure Docker Desktop is running.
For more details, refer to the source code and configuration files in the project.