refactor: susun semula struktur folder — Laravel source ke src/

This commit is contained in:
Saufi
2026-05-19 15:58:35 +08:00
parent f052251b94
commit bf53c71b45
10806 changed files with 1385379 additions and 121 deletions

View File

@@ -8,41 +8,40 @@
.gitattributes
# Dependencies (akan dipasang semula dalam container)
node_modules
vendor
src/node_modules
src/vendor
# Environment secrets
.env
.env.*
!.env.docker
!.env.example
!src/.env.example
# Build output (akan dihasilkan semula)
public/hot
public/build
# Build output
src/public/hot
src/public/build
# Dev tools
.idea
.vscode
*.code-workspace
.editorconfig
.phpunit.cache
phpunit.xml
src/.editorconfig
src/.phpunit.cache
src/phpunit.xml
# Docker Compose files (tidak perlu dalam app container)
# Docker Compose files
docker-compose*.yml
# docker/ TIDAK diexclude — Dockerfile perlukan docker/entrypoint.sh dan docker/php/php.ini
# docker/ TIDAK diexclude — Dockerfile perlukan docker/entrypoint.sh
# Logs & cache
storage/logs/*
storage/framework/cache/*
storage/framework/sessions/*
storage/framework/views/*
bootstrap/cache/*
src/storage/logs/*
src/storage/framework/cache/*
src/storage/framework/sessions/*
src/storage/framework/views/*
src/bootstrap/cache/*
# OS
.DS_Store
Thumbs.db
# Tests
tests/
src/tests/

View File

@@ -1,67 +0,0 @@
# ──────────────────────────────────────────────────────────────────────────────
# eCert MBIP — Contoh .env untuk Docker
# Salin ke .env dan ubah nilai yang perlu:
# cp .env.docker .env
# ──────────────────────────────────────────────────────────────────────────────
APP_NAME="eCert MBIP"
APP_ENV=local
APP_KEY=
APP_DEBUG=true
# PENTING: Tukar ke domain sebenar untuk production
# Contoh: APP_URL=https://ecert.mbip.gov.my
APP_URL=http://localhost:8003
APP_LOCALE=ms
APP_FALLBACK_LOCALE=ms
APP_FAKER_LOCALE=ms_MY
APP_MAINTENANCE_DRIVER=file
BCRYPT_ROUNDS=12
LOG_CHANNEL=stack
LOG_STACK=single
LOG_DEPRECATIONS_CHANNEL=null
# Production: guna level "warning" atau "error"
LOG_LEVEL=debug
# ── Database ──────────────────────────────────────────────────────────────────
DB_CONNECTION=mysql
# DEV (Windows): DB_HOST=host.docker.internal ← MySQL pada host Windows
# PRODUCTION: DB_HOST=172.17.200.16 ← MySQL server external
DB_HOST=host.docker.internal
DB_PORT=3306
DB_DATABASE=ecert_mbip
DB_USERNAME=ecert
# Tukar password ini!
DB_PASSWORD=ecert_secret_2025
# ── Session ───────────────────────────────────────────────────────────────────
SESSION_DRIVER=database
SESSION_LIFETIME=120
SESSION_ENCRYPT=false
SESSION_PATH=/
SESSION_DOMAIN=null
# ── Cache & Queue (guna database — tiada Redis diperlukan) ────────────────────
BROADCAST_CONNECTION=log
FILESYSTEM_DISK=local
QUEUE_CONNECTION=database
CACHE_STORE=database
# ── Mail ──────────────────────────────────────────────────────────────────────
# Dev: guna "log" untuk lihat email dalam storage/logs/laravel.log
# Production: tukar ke SMTP
MAIL_MAILER=log
MAIL_SCHEME=null
MAIL_HOST=smtp.mbip.gov.my
MAIL_PORT=587
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS="ecert@mbip.gov.my"
MAIL_FROM_NAME="eCert MBIP"
# ── Vite ──────────────────────────────────────────────────────────────────────
VITE_APP_NAME="${APP_NAME}"

33
.gitignore vendored
View File

@@ -1,32 +1,5 @@
*.log
.DS_Store
.env
.env.backup
.env.production
.phpactor.json
.env.*
!src/.env.example
.phpunit.result.cache
/.codex
/.cursor/
/.idea
/.nova
/.phpunit.cache
/.vscode
/.zed
/auth.json
/node_modules
/public/build
/public/fonts-manifest.dev.json
/public/hot
/public/storage
/storage/*.key
/storage/pail
/vendor
_ide_helper.php
Homestead.json
Homestead.yaml
Thumbs.db
# Application-specific storage (private files)
/storage/app/private/certificates/
/storage/app/private/imports/
/storage/app/public/qrcodes/
node_modules

View File

@@ -22,7 +22,7 @@ services:
container_name: ecert_app
restart: always
volumes:
- .:/var/www
- ./src:/var/www
- ./docker/php/php.ini:/usr/local/etc/php/conf.d/99-ecert.ini:ro
- storage_data:/var/www/storage
environment:
@@ -35,7 +35,7 @@ services:
container_name: ecert_nginx
restart: always
volumes:
- .:/var/www:ro
- ./src:/var/www:ro
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
- storage_data:/var/www/storage:ro
@@ -44,7 +44,7 @@ services:
container_name: ecert_queue
restart: always
volumes:
- .:/var/www
- ./src:/var/www
- ./docker/php/php.ini:/usr/local/etc/php/conf.d/99-ecert.ini:ro
- storage_data:/var/www/storage
environment:

View File

@@ -24,7 +24,7 @@ services:
restart: unless-stopped
working_dir: /var/www
volumes:
- .:/var/www
- ./src:/var/www
- ./docker/php/php.ini:/usr/local/etc/php/conf.d/99-ecert.ini:ro
- ./docker/php/php-dev.ini:/usr/local/etc/php/conf.d/99-ecert-dev.ini:ro
env_file:
@@ -45,7 +45,7 @@ services:
ports:
- "8003:80"
volumes:
- .:/var/www:ro
- ./src:/var/www:ro
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
- app
@@ -61,7 +61,7 @@ services:
restart: unless-stopped
working_dir: /var/www
volumes:
- .:/var/www
- ./src:/var/www
- ./docker/php/php.ini:/usr/local/etc/php/conf.d/99-ecert.ini:ro
env_file:
- .env

31
src/.gitignore vendored Normal file
View File

@@ -0,0 +1,31 @@
*.log
.DS_Store
.env
.env.backup
.env.production
.phpactor.json
.phpunit.result.cache
/.codex
/.cursor/
/.idea
/.nova
/.phpunit.cache
/.vscode
/.zed
/auth.json
/node_modules
/public/fonts-manifest.dev.json
/public/hot
/public/storage
/storage/*.key
/storage/pail
/vendor
_ide_helper.php
Homestead.json
Homestead.yaml
Thumbs.db
# Application-specific storage (private files)
/storage/app/private/certificates/
/storage/app/private/imports/
/storage/app/public/qrcodes/

View File

View File

Some files were not shown because too many files have changed in this diff Show More