Files
electricityalert/setup_project.sh
2025-09-12 12:47:45 +02:00

30 lines
810 B
Bash

#!/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."