- 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.
26 lines
443 B
Bash
Executable File
26 lines
443 B
Bash
Executable File
#!/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
|
|
|
|
echo "🚀 Starting $SERVICE..."
|
|
|
|
# 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
|
|
|
|
cd "services/$SERVICE"
|
|
pnpm dev
|