diff --git a/Controllers/HomeController.cs b/Controllers/HomeController.cs index 244c790..4744180 100644 --- a/Controllers/HomeController.cs +++ b/Controllers/HomeController.cs @@ -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; /// /// Controller utama untuk halaman Home dengan .NET 9 best practices diff --git a/Dockerfile b/Dockerfile index 7e6e584..c0f099c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] \ No newline at end of file +ENTRYPOINT ["dotnet", "BpsRwApp.dll"] \ No newline at end of file diff --git a/Filters/GlobalExceptionFilter.cs b/Filters/GlobalExceptionFilter.cs index 208818a..9dfc88a 100644 --- a/Filters/GlobalExceptionFilter.cs +++ b/Filters/GlobalExceptionFilter.cs @@ -2,7 +2,7 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; using System.Net; -namespace BankSampahApp.Filters; +namespace BpsRwApp.Filters; /// /// Global exception filter untuk menangani error secara terpusat diff --git a/Models/ErrorViewModel.cs b/Models/ErrorViewModel.cs index a04f9ed..a555391 100644 --- a/Models/ErrorViewModel.cs +++ b/Models/ErrorViewModel.cs @@ -1,4 +1,4 @@ -namespace BankSampahApp.Models; +namespace BpsRwApp.Models; /// /// Model untuk menampilkan halaman error diff --git a/Models/FeatureModel.cs b/Models/FeatureModel.cs index a92f6db..1d8e95d 100644 --- a/Models/FeatureModel.cs +++ b/Models/FeatureModel.cs @@ -1,4 +1,4 @@ -namespace BankSampahApp.Models; +namespace BpsRwApp.Models; /// /// Model untuk menampilkan fitur-fitur aplikasi Bank Sampah diff --git a/Models/HomeViewModel.cs b/Models/HomeViewModel.cs index 04b829f..735c4e6 100644 --- a/Models/HomeViewModel.cs +++ b/Models/HomeViewModel.cs @@ -1,4 +1,4 @@ -namespace BankSampahApp.Models; +namespace BpsRwApp.Models; /// /// View model untuk halaman utama aplikasi Bank Sampah diff --git a/Models/StatisticsModel.cs b/Models/StatisticsModel.cs index dcbe43a..47184e6 100644 --- a/Models/StatisticsModel.cs +++ b/Models/StatisticsModel.cs @@ -1,4 +1,4 @@ -namespace BankSampahApp.Models; +namespace BpsRwApp.Models; /// /// Model untuk menampilkan statistik dan achievement aplikasi Bank Sampah diff --git a/Program.cs b/Program.cs index 45efd97..e8983c1 100644 --- a/Program.cs +++ b/Program.cs @@ -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); diff --git a/README.md b/README.md index 29eb2ab..92f1d02 100644 --- a/README.md +++ b/README.md @@ -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** diff --git a/README.pdf b/README.pdf index 8738ca6..f2ec201 100644 Binary files a/README.pdf and b/README.pdf differ diff --git a/Services/AppConfigurationService.cs b/Services/AppConfigurationService.cs index 158ed9f..56e0a45 100644 --- a/Services/AppConfigurationService.cs +++ b/Services/AppConfigurationService.cs @@ -1,4 +1,4 @@ -namespace BankSampahApp.Services; +namespace BpsRwApp.Services; /// /// Implementation of centralized configuration service diff --git a/Services/BaseService.cs b/Services/BaseService.cs index 4e89722..8692d50 100644 --- a/Services/BaseService.cs +++ b/Services/BaseService.cs @@ -1,6 +1,6 @@ using Microsoft.Extensions.Caching.Memory; -namespace BankSampahApp.Services; +namespace BpsRwApp.Services; /// /// Base service class yang menyediakan functionality umum untuk semua services diff --git a/Services/CacheService.cs b/Services/CacheService.cs index 41dad22..9b8239e 100644 --- a/Services/CacheService.cs +++ b/Services/CacheService.cs @@ -2,7 +2,7 @@ using Microsoft.Extensions.Caching.Memory; using System.Collections.Concurrent; using System.Text.RegularExpressions; -namespace BankSampahApp.Services; +namespace BpsRwApp.Services; /// /// Implementation of cache service dengan enhanced functionality diff --git a/Services/HomeService.cs b/Services/HomeService.cs index b602b98..4c3ba95 100644 --- a/Services/HomeService.cs +++ b/Services/HomeService.cs @@ -1,6 +1,6 @@ -using BankSampahApp.Models; +using BpsRwApp.Models; -namespace BankSampahApp.Services; +namespace BpsRwApp.Services; /// /// Service implementation untuk menangani logic bisnis halaman Home diff --git a/Services/IAppConfigurationService.cs b/Services/IAppConfigurationService.cs index 3b19e53..9cf3970 100644 --- a/Services/IAppConfigurationService.cs +++ b/Services/IAppConfigurationService.cs @@ -1,4 +1,4 @@ -namespace BankSampahApp.Services; +namespace BpsRwApp.Services; /// /// Interface untuk centralized configuration management diff --git a/Services/ICacheService.cs b/Services/ICacheService.cs index cacfe09..b714b4c 100644 --- a/Services/ICacheService.cs +++ b/Services/ICacheService.cs @@ -1,6 +1,6 @@ using Microsoft.Extensions.Caching.Memory; -namespace BankSampahApp.Services; +namespace BpsRwApp.Services; /// /// Interface untuk cache service yang mengelola caching operations diff --git a/Services/IHomeService.cs b/Services/IHomeService.cs index 897be73..5ff31b2 100644 --- a/Services/IHomeService.cs +++ b/Services/IHomeService.cs @@ -1,6 +1,6 @@ -using BankSampahApp.Models; +using BpsRwApp.Models; -namespace BankSampahApp.Services; +namespace BpsRwApp.Services; /// /// Interface untuk service yang menangani logic bisnis halaman Home diff --git a/Services/IStatisticsService.cs b/Services/IStatisticsService.cs index 5e65a47..442343e 100644 --- a/Services/IStatisticsService.cs +++ b/Services/IStatisticsService.cs @@ -1,6 +1,6 @@ -using BankSampahApp.Models; +using BpsRwApp.Models; -namespace BankSampahApp.Services; +namespace BpsRwApp.Services; /// /// Interface untuk service yang menangani statistik aplikasi diff --git a/Services/IValidationService.cs b/Services/IValidationService.cs index 0d33967..be4991a 100644 --- a/Services/IValidationService.cs +++ b/Services/IValidationService.cs @@ -1,6 +1,6 @@ -using BankSampahApp.Models; +using BpsRwApp.Models; -namespace BankSampahApp.Services; +namespace BpsRwApp.Services; /// /// Interface untuk common validation logic diff --git a/Services/StatisticsService.cs b/Services/StatisticsService.cs index 7575f7e..c15fce4 100644 --- a/Services/StatisticsService.cs +++ b/Services/StatisticsService.cs @@ -1,6 +1,6 @@ -using BankSampahApp.Models; +using BpsRwApp.Models; -namespace BankSampahApp.Services; +namespace BpsRwApp.Services; /// /// Service implementation untuk menangani statistik aplikasi diff --git a/Services/ValidationService.cs b/Services/ValidationService.cs index 89350c6..77f0ab2 100644 --- a/Services/ValidationService.cs +++ b/Services/ValidationService.cs @@ -1,6 +1,6 @@ -using BankSampahApp.Models; +using BpsRwApp.Models; -namespace BankSampahApp.Services; +namespace BpsRwApp.Services; /// /// Implementation of validation service diff --git a/Views/_ViewImports.cshtml b/Views/_ViewImports.cshtml index d06bcbc..f7f8e2b 100644 --- a/Views/_ViewImports.cshtml +++ b/Views/_ViewImports.cshtml @@ -1,3 +1,3 @@ -@using BankSampahApp -@using BankSampahApp.Models +@using BpsRwApp +@using BpsRwApp.Models @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers \ No newline at end of file diff --git a/appsettings.Development.json b/appsettings.Development.json index 4215fae..f892209 100644 --- a/appsettings.Development.json +++ b/appsettings.Development.json @@ -5,7 +5,7 @@ "Microsoft.AspNetCore": "Information", "Microsoft.AspNetCore.Hosting": "Debug", "Microsoft.AspNetCore.Routing": "Debug", - "BankSampahApp": "Debug" + "BpsRwApp": "Debug" }, "Console": { "IncludeScopes": true, diff --git a/appsettings.json b/appsettings.json index cf4fdcc..7d28e83 100644 --- a/appsettings.json +++ b/appsettings.json @@ -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, diff --git a/docker-compose.yml b/docker-compose.yml index e888cb7..bb24c55 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 \ No newline at end of file diff --git a/package.json b/package.json index 7d1ccf6..e8cc64a 100644 --- a/package.json +++ b/package.json @@ -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" diff --git a/wwwroot/js/site.js b/wwwroot/js/site.js index 6251ce0..3838890 100644 --- a/wwwroot/js/site.js +++ b/wwwroot/js/site.js @@ -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; } \ No newline at end of file