feat: change to bps rw

main-dlh
Rohmad Eko Wahyudi 2025-09-16 14:34:50 +07:00
parent 0e432f7510
commit 523a5e6d8b
No known key found for this signature in database
GPG Key ID: 4CCEDA68CB778BAF
27 changed files with 56 additions and 56 deletions

View File

@ -1,9 +1,9 @@
using Microsoft.AspNetCore.Mvc;
using BankSampahApp.Models;
using BankSampahApp.Services;
using BpsRwApp.Models;
using BpsRwApp.Services;
using System.Diagnostics;
namespace BankSampahApp.Controllers;
namespace BpsRwApp.Controllers;
/// <summary>
/// Controller utama untuk halaman Home dengan .NET 9 best practices

View File

@ -29,7 +29,7 @@ WORKDIR /src
# Copy project file and restore dependencies
COPY *.csproj .
RUN dotnet restore "BankSampahApp.csproj"
RUN dotnet restore "BpsRwApp.csproj"
# Copy source code
COPY . .
@ -38,11 +38,11 @@ COPY . .
COPY --from=node-build /src/wwwroot/css/site.css ./wwwroot/css/
# Build the application
RUN dotnet build "BankSampahApp.csproj" -c Release -o /app/build
RUN dotnet build "BpsRwApp.csproj" -c Release -o /app/build
# Stage 4: Publish the application
FROM build AS publish
RUN dotnet publish "BankSampahApp.csproj" -c Release -o /app/publish /p:UseAppHost=false
RUN dotnet publish "BpsRwApp.csproj" -c Release -o /app/publish /p:UseAppHost=false
# Stage 5: Final runtime image
FROM base AS final
@ -64,4 +64,4 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD curl -f http://localhost:8080/health || exit 1
# Entry point
ENTRYPOINT ["dotnet", "BankSampahApp.dll"]
ENTRYPOINT ["dotnet", "BpsRwApp.dll"]

View File

@ -2,7 +2,7 @@ using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Filters;
using System.Net;
namespace BankSampahApp.Filters;
namespace BpsRwApp.Filters;
/// <summary>
/// Global exception filter untuk menangani error secara terpusat

View File

@ -1,4 +1,4 @@
namespace BankSampahApp.Models;
namespace BpsRwApp.Models;
/// <summary>
/// Model untuk menampilkan halaman error

View File

@ -1,4 +1,4 @@
namespace BankSampahApp.Models;
namespace BpsRwApp.Models;
/// <summary>
/// Model untuk menampilkan fitur-fitur aplikasi Bank Sampah

View File

@ -1,4 +1,4 @@
namespace BankSampahApp.Models;
namespace BpsRwApp.Models;
/// <summary>
/// View model untuk halaman utama aplikasi Bank Sampah

View File

@ -1,4 +1,4 @@
namespace BankSampahApp.Models;
namespace BpsRwApp.Models;
/// <summary>
/// Model untuk menampilkan statistik dan achievement aplikasi Bank Sampah

View File

@ -1,5 +1,5 @@
using BankSampahApp.Services;
using BankSampahApp.Filters;
using BpsRwApp.Services;
using BpsRwApp.Filters;
using Microsoft.AspNetCore.HttpOverrides;
var builder = WebApplication.CreateBuilder(args);

View File

@ -1,15 +1,15 @@
# 🌱 Bank Sampah Digital
# 🌱 BPS RW
**Aplikasi ASP.NET Core MVC untuk mengelola bank sampah dengan teknologi modern**
**Aplikasi ASP.NET Core MVC untuk mengelola BPS RW dengan teknologi modern**
## 📋 Deskripsi
Bank Sampah Digital adalah aplikasi web yang memungkinkan pengguna untuk mengelola sampah dengan sistem reward yang menarik. Aplikasi ini dibangun menggunakan ASP.NET Core MVC dengan design system DaisyUI dan Tailwind CSS untuk menciptakan pengalaman pengguna yang modern dan responsif.
BPS RW adalah aplikasi web yang memungkinkan pengguna untuk mengelola sampah dengan sistem reward yang menarik. Aplikasi ini dibangun menggunakan ASP.NET Core MVC dengan design system DaisyUI dan Tailwind CSS untuk menciptakan pengalaman pengguna yang modern dan responsif.
## 📁 Struktur Proyek
```
bank-sampah/
bps-rw/
├── Controllers/ # MVC Controllers
│ └── HomeController.cs # Controller utama dengan .NET 9 best practices
├── Services/ # Business Logic Services
@ -39,7 +39,7 @@ bank-sampah/
├── Program.cs # .NET 9 minimal hosting konfigurasi
├── appsettings.json # Configuration utama
├── appsettings.Development.json # Development configuration
├── BankSampahApp.csproj # .NET 9 project file
├── BpsRwApp.csproj # .NET 9 project file
├── package.json # Dependencies untuk Node.js
└── tailwind.config.js # Konfigurasi Tailwind & DaisyUI
```
@ -56,7 +56,7 @@ bank-sampah/
1. **Clone repository**
```bash
git clone [repository-url]
cd bank-sampah
cd bps-rw
```
2. **Install dependencies Node.js**

Binary file not shown.

View File

@ -1,4 +1,4 @@
namespace BankSampahApp.Services;
namespace BpsRwApp.Services;
/// <summary>
/// Implementation of centralized configuration service

View File

@ -1,6 +1,6 @@
using Microsoft.Extensions.Caching.Memory;
namespace BankSampahApp.Services;
namespace BpsRwApp.Services;
/// <summary>
/// Base service class yang menyediakan functionality umum untuk semua services

View File

@ -2,7 +2,7 @@ using Microsoft.Extensions.Caching.Memory;
using System.Collections.Concurrent;
using System.Text.RegularExpressions;
namespace BankSampahApp.Services;
namespace BpsRwApp.Services;
/// <summary>
/// Implementation of cache service dengan enhanced functionality

View File

@ -1,6 +1,6 @@
using BankSampahApp.Models;
using BpsRwApp.Models;
namespace BankSampahApp.Services;
namespace BpsRwApp.Services;
/// <summary>
/// Service implementation untuk menangani logic bisnis halaman Home

View File

@ -1,4 +1,4 @@
namespace BankSampahApp.Services;
namespace BpsRwApp.Services;
/// <summary>
/// Interface untuk centralized configuration management

View File

@ -1,6 +1,6 @@
using Microsoft.Extensions.Caching.Memory;
namespace BankSampahApp.Services;
namespace BpsRwApp.Services;
/// <summary>
/// Interface untuk cache service yang mengelola caching operations

View File

@ -1,6 +1,6 @@
using BankSampahApp.Models;
using BpsRwApp.Models;
namespace BankSampahApp.Services;
namespace BpsRwApp.Services;
/// <summary>
/// Interface untuk service yang menangani logic bisnis halaman Home

View File

@ -1,6 +1,6 @@
using BankSampahApp.Models;
using BpsRwApp.Models;
namespace BankSampahApp.Services;
namespace BpsRwApp.Services;
/// <summary>
/// Interface untuk service yang menangani statistik aplikasi

View File

@ -1,6 +1,6 @@
using BankSampahApp.Models;
using BpsRwApp.Models;
namespace BankSampahApp.Services;
namespace BpsRwApp.Services;
/// <summary>
/// Interface untuk common validation logic

View File

@ -1,6 +1,6 @@
using BankSampahApp.Models;
using BpsRwApp.Models;
namespace BankSampahApp.Services;
namespace BpsRwApp.Services;
/// <summary>
/// Service implementation untuk menangani statistik aplikasi

View File

@ -1,6 +1,6 @@
using BankSampahApp.Models;
using BpsRwApp.Models;
namespace BankSampahApp.Services;
namespace BpsRwApp.Services;
/// <summary>
/// Implementation of validation service

View File

@ -1,3 +1,3 @@
@using BankSampahApp
@using BankSampahApp.Models
@using BpsRwApp
@using BpsRwApp.Models
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers

View File

@ -5,7 +5,7 @@
"Microsoft.AspNetCore": "Information",
"Microsoft.AspNetCore.Hosting": "Debug",
"Microsoft.AspNetCore.Routing": "Debug",
"BankSampahApp": "Debug"
"BpsRwApp": "Debug"
},
"Console": {
"IncludeScopes": true,

View File

@ -14,9 +14,9 @@
"CacheExpirationMinutes": 15
},
"Application": {
"Name": "Bank Sampah Digital",
"Name": "BPS RW",
"Version": "1.0.0",
"Description": "Aplikasi digital untuk mengelola bank sampah dengan sistem reward"
"Description": "Aplikasi digital untuk mengelola BPS RW"
},
"Features": {
"EnableCaching": true,

View File

@ -2,12 +2,12 @@ version: '3.8'
services:
# Main application service
bank-sampah-app:
bps-rw-app:
build:
context: .
dockerfile: Dockerfile
target: final
container_name: bank-sampah-app
container_name: bps-rw-app
ports:
- "8080:8080"
- "8081:8081"
@ -20,7 +20,7 @@ services:
# Mount logs directory
- ./logs:/app/logs
networks:
- bank-sampah-network
- bps-rw-network
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
@ -32,7 +32,7 @@ services:
# Nginx reverse proxy (optional)
nginx:
image: nginx:alpine
container_name: bank-sampah-nginx
container_name: bps-rw-nginx
ports:
- "80:80"
- "443:443"
@ -41,11 +41,11 @@ services:
- ./nginx/ssl:/etc/nginx/ssl:ro
- ./logs/nginx:/var/log/nginx
networks:
- bank-sampah-network
- bps-rw-network
restart: unless-stopped
depends_on:
- bank-sampah-app
- bps-rw-app
networks:
bank-sampah-network:
bps-rw-network:
driver: bridge

View File

@ -1,7 +1,7 @@
{
"name": "bank-sampah-app",
"name": "bps-rw-app",
"version": "1.0.0",
"description": "Bank Sampah Application",
"description": "BPW RW Application",
"scripts": {
"build-css": "tailwindcss -i ./wwwroot/css/input.css -o ./wwwroot/css/site.css --watch",
"build": "tailwindcss -i ./wwwroot/css/input.css -o ./wwwroot/css/site.css --minify"

View File

@ -3,7 +3,7 @@
* Optimized dengan modern patterns dan clean code principles
*/
class BankSampahApp {
class BpsRwApp {
constructor() {
this.config = {
animationDuration: 600,
@ -359,20 +359,20 @@ class BankSampahApp {
console.log('🌱 Bank Sampah Digital - Aplikasi siap digunakan!');
} catch (error) {
console.error('Error initializing BankSampahApp:', error);
console.error('Error initializing BpsRwApp:', error);
}
}
}
// Create global instance
const BankSampah = new BankSampahApp();
const BpsRw = new BpsRwApp();
// Initialize saat DOM ready
document.addEventListener('DOMContentLoaded', function() {
BankSampah.init();
BpsRw.init();
});
// Export untuk penggunaan di file lain
if (typeof module !== 'undefined' && module.exports) {
module.exports = BankSampah;
module.exports = BpsRw;
}