https://github.com/yoboujon/automatic-management
TP Service Architecture based on meta-micro-micro-services
https://github.com/yoboujon/automatic-management
golang java microservice rest-api simulation spring-boot
Last synced: about 2 months ago
JSON representation
TP Service Architecture based on meta-micro-micro-services
- Host: GitHub
- URL: https://github.com/yoboujon/automatic-management
- Owner: yoboujon
- License: agpl-3.0
- Created: 2024-12-20T09:00:03.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-24T22:25:18.000Z (over 1 year ago)
- Last Synced: 2025-09-21T11:56:21.394Z (9 months ago)
- Topics: golang, java, microservice, rest-api, simulation, spring-boot
- Language: Java
- Homepage:
- Size: 95.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# automatic-management
TP Service Architecture based on meta-micro-micro-services
See [Controller](controller)
See [Application](app)
# Description des services
Sensor-Service retrieves data: indoor temperature = 22°C, outdoor temperature = 20°C, CO2 = 900 ppm, presence = detected.
Decision-Service processes rules:
Outdoor temperature is lower than indoor and between 18-27°C → Open windows.
Presence detected → Keep lights on.
CO2 threshold exceeded → Open windows further.
Actuator-Service executes:
Sends command to actuators to open windows and turn on lights.
# Get started
To run the different services using Spring Boot, follow these steps:
1. **Build the project using Maven**:
```sh
mvn clean install
```
2. **Run the Sensor-Service**:
```sh
mvn spring-boot:run -pl sensor-service
```
3. **Run the Decision-Service**:
```sh
mvn spring-boot:run -pl decision-service
```
4. **Run the Actuator-Service**:
```sh
mvn spring-boot:run -pl actuator-service
```
To start the front end navigate to frontend/ and execute `python3 -m http.server`