Update project documentation and scripts for improved setup and bilingual support

- Enhanced `README.md` with a quick start guide and detailed project structure.
- Updated `SETUP_GUIDE.md` by removing it as it was redundant.
- Improved `local-development.md` and `development.md` with clearer instructions for database migrations.
- Added bilingual comments in various scripts for better understanding and usability.
- Updated `.gitignore` to include specific build scripts while ignoring others.
- Enhanced `scripts` for database management, including backup and seeding functionalities with bilingual support.
This commit is contained in:
Ho Ngoc Hai
2025-12-27 10:12:46 +07:00
parent 79866e22cf
commit 29c40ea681
23 changed files with 528 additions and 392 deletions

11
scripts/build/build-all.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
set -e
echo "🔨 Building all services and apps..."
# EN: Build all packages using pnpm workspace
# VI: Build tất cả các package sử dụng pnpm workspace
pnpm build
echo "✅ Build completed!"

28
scripts/build/build-service.sh Executable file
View File

@@ -0,0 +1,28 @@
#!/bin/bash
set -e
SERVICE=$1
# EN: Validate arguments
# VI: Xác thực tham số
if [ -z "$SERVICE" ]; then
echo "Usage: $0 <service-name>"
echo "Example: $0 auth-service"
exit 1
fi
# EN: Check if service exists
# VI: Kiểm tra xem service có tồn tại không
if [ ! -d "services/$SERVICE" ]; then
echo "❌ Service $SERVICE not found"
exit 1
fi
echo "🔨 Building $SERVICE..."
# EN: Build specific service using pnpm filter
# VI: Build service cụ thể sử dụng pnpm filter
pnpm --filter "@goodgo/$SERVICE" build
echo "✅ Build completed!"