Refactor auth-service to iam-service and update related configurations

- Renamed auth-service to iam-service across various files for consistency.
- Updated deployment workflows, database migration scripts, and documentation to reflect the service name change.
- Enhanced bilingual documentation for clarity on the new service structure and usage.
- Removed outdated references to auth-service in scripts and configuration files to streamline the project structure.
This commit is contained in:
Ho Ngoc Hai
2025-12-30 21:03:00 +07:00
parent b104fafa85
commit 019c79b898
23 changed files with 57 additions and 58 deletions

View File

@@ -9,7 +9,7 @@ BACKUP_DIR="${2:-./backups}"
# VI: Xác thực tham số
if [ -z "$SERVICE" ]; then
echo "Usage: $0 <service-name> [backup-dir]"
echo "Example: $0 auth-service"
echo "Example: $0 iam-service"
exit 1
fi

View File

@@ -10,8 +10,8 @@ SERVICE=$1
# VI: Xác thực tham số tên service
if [ -z "$SERVICE" ]; then
echo "Usage: $0 <service-name> [dev|deploy] / Cách dùng: $0 <tên-service> [dev|deploy]"
echo "Example: $0 auth-service dev / Ví dụ: $0 auth-service dev"
echo "Example: $0 auth-service deploy / Ví dụ: $0 auth-service deploy"
echo "Example: $0 iam-service dev / Ví dụ: $0 iam-service dev"
echo "Example: $0 iam-service deploy / Ví dụ: $0 iam-service deploy"
exit 1
fi

View File

@@ -8,7 +8,7 @@ SERVICE=$1
# VI: Xác thực tham số
if [ -z "$SERVICE" ]; then
echo "Usage: $0 <service-name>"
echo "Example: $0 auth-service"
echo "Example: $0 iam-service"
exit 1
fi

View File

@@ -63,10 +63,10 @@ echo " See: deployments/staging/kubernetes/secrets.yaml.example"
echo " See: deployments/production/kubernetes/secrets.yaml.example"
echo ""
echo "3. Run initial migration:"
echo " ./scripts/db/migrate.sh auth-service dev"
echo " ./scripts/db/migrate.sh iam-service dev"
echo ""
echo "4. Seed database (optional):"
echo " ./scripts/db/seed.sh auth-service"
echo " ./scripts/db/seed.sh iam-service"
echo ""
echo -e "${GREEN}✅ Setup instructions complete!${NC}"
echo ""