From d92cff5fcbf4bfc7d2f580431dd1939db529c550 Mon Sep 17 00:00:00 2001 From: Raihan Ariq <202310715297@mhs.ubharajaya.ac.id> Date: Fri, 1 May 2026 15:02:29 +0700 Subject: [PATCH] rebuild --- .idea/deviceManager.xml | 13 +++++ .idea/inspectionProfiles/Project_Default.xml | 50 +++++++++++++++++++ README.md | 2 +- .../ubharajaya/sistemakademik/MainActivity.kt | 2 +- backend/Dockerfile | 20 ++++++++ backend/app.py | 2 +- settings.gradle.kts | 3 ++ 7 files changed, 89 insertions(+), 3 deletions(-) create mode 100644 .idea/deviceManager.xml create mode 100644 .idea/inspectionProfiles/Project_Default.xml create mode 100644 backend/Dockerfile diff --git a/.idea/deviceManager.xml b/.idea/deviceManager.xml new file mode 100644 index 0000000..91f9558 --- /dev/null +++ b/.idea/deviceManager.xml @@ -0,0 +1,13 @@ + + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..f0c6ad0 --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,50 @@ + + + + \ No newline at end of file diff --git a/README.md b/README.md index 4186017..dfce7a8 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# 📱 Aplikasi Absensi Akademik UBHARA Jaya (Mobile & Backend) +# 📱 Aplikasi Absensi Akademik UBHARA Jaya [📋 Changelog](./CHANGELOG.md) diff --git a/app/src/main/java/id/ac/ubharajaya/sistemakademik/MainActivity.kt b/app/src/main/java/id/ac/ubharajaya/sistemakademik/MainActivity.kt index af26220..ba3ae15 100644 --- a/app/src/main/java/id/ac/ubharajaya/sistemakademik/MainActivity.kt +++ b/app/src/main/java/id/ac/ubharajaya/sistemakademik/MainActivity.kt @@ -88,7 +88,7 @@ import androidx.compose.ui.unit.sp object AppConstants { // Backend API URL - GANTI SESUAI SERVER ANDA // const val BASE_URL = "http://10.0.2.2:5000" // Untuk emulator Android - const val BASE_URL = "http://192.168.xxx.xxx:5000" // Untuk device fisik + const val BASE_URL = "http://192.168.100.99:5000" // Untuk device fisik // Koordinat Kampus (UBHARA Jaya) const val KAMPUS_LATITUDE = -6.223325 diff --git a/backend/Dockerfile b/backend/Dockerfile new file mode 100644 index 0000000..fdd6f91 --- /dev/null +++ b/backend/Dockerfile @@ -0,0 +1,20 @@ +# Gunakan image Python yang ringan sebagai dasar +FROM python:3.9-slim + +# Set working directory di dalam kontainer +WORKDIR /app + +# Salin file requirements.txt terlebih dahulu (untuk efisiensi cache Docker) +COPY requirements.txt . + +# Install semua library yang dibutuhkan +RUN pip install --no-cache-dir -r requirements.txt + +# Salin seluruh file backend ke dalam kontainer +COPY . . + +# Ekspos port 5000 agar bisa diakses dari luar kontainer +EXPOSE 5000 + +# Perintah untuk menjalankan server Flask +CMD ["python", "app.py"] \ No newline at end of file diff --git a/backend/app.py b/backend/app.py index b695581..9a133b8 100644 --- a/backend/app.py +++ b/backend/app.py @@ -24,7 +24,7 @@ CORS(app) DB_CONFIG = { 'host': 'localhost', 'user': 'root', - 'password': '@Rique03', + 'password': '', 'database': 'db_absensi_akademik' } diff --git a/settings.gradle.kts b/settings.gradle.kts index 99b1b95..b53f368 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -11,6 +11,9 @@ pluginManagement { gradlePluginPortal() } } +plugins { + id("org.gradle.toolchains.foojay-resolver-convention") version "0.10.0" +} dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories {