initial commit

This commit is contained in:
Urban Modig
2025-09-12 12:41:50 +02:00
parent f7b2579690
commit 75d174ef25
12 changed files with 566 additions and 2 deletions

29
setup_project.sh Normal file
View File

@ -0,0 +1,29 @@
#!/bin/bash
BASE_DIR="src/main"
JAVA_DIR="$BASE_DIR/java/se/urmo/electricityalert"
RES_DIR="$BASE_DIR/resources"
# Create directory structure
mkdir -p "$JAVA_DIR/config"
mkdir -p "$JAVA_DIR/fetcher"
mkdir -p "$JAVA_DIR/alert"
mkdir -p "$JAVA_DIR/notifier"
mkdir -p "$JAVA_DIR/store"
mkdir -p "$JAVA_DIR/model"
mkdir -p "$RES_DIR"
# Create empty Java files
touch "$JAVA_DIR/ElectricityAlertApplication.java"
touch "$JAVA_DIR/config/AppConfig.java"
touch "$JAVA_DIR/fetcher/PriceFetcherService.java"
touch "$JAVA_DIR/alert/AlertService.java"
touch "$JAVA_DIR/notifier/TelegramNotifier.java"
touch "$JAVA_DIR/store/InMemoryPriceStore.java"
touch "$JAVA_DIR/model/ElectricityPrice.java"
# Create application.properties
touch "$RES_DIR/application.properties"
echo "Project structure and base files created."