593 Commits

Author SHA1 Message Date
T. Narantuya
d055ba34d8 Remove obsolete deployment guides and ESLint report files to streamline project documentation and improve clarity. Updated package configurations and scripts for better development experience and logging integration. 2025-08-30 15:47:48 +09:00
tema
cc3ace04e4 Enhance WHMCS payment methods testing and logging
- Improved `testPaymentMethods` endpoint in InvoicesController for better client ID testing.
- Enhanced `testWhmcsPaymentMethods` method in InvoicesService with improved logging and error handling.
- Updated `getPaymentMethods` in WhmcsPaymentService to bypass cache and improve debugging.
- Refined payment method transformation in WhmcsDataTransformer for better API response handling.
- Added detailed debug information in Checkout and AddressConfirmation components for troubleshooting.
2025-08-30 15:45:22 +09:00
tema
a8f02ebc2b Add temporary debug endpoints and methods for WHMCS payment methods testing
- Introduced `testPaymentMethods` endpoint in InvoicesController to directly test WHMCS payment methods for a specific client ID.
- Added `testWhmcsPaymentMethods` method in InvoicesService for detailed logging and error handling during WHMCS API calls.
- Implemented cache bypassing and enhanced logging in `getPaymentMethods` method of WhmcsPaymentService for debugging purposes.
- Updated payment method transformation logic in WhmcsDataTransformer to handle variations in WHMCS API responses.
- Added debug information in Checkout and AddressConfirmation components to assist in troubleshooting address confirmation flow.
2025-08-30 15:41:08 +09:00
tema
1640fae457 Add new payment methods and health check endpoints in Auth and Invoices services
- Introduced `validateSignup` endpoint in AuthController for customer number validation during signup.
- Added `healthCheck` method in AuthService to verify service integrations and database connectivity.
- Implemented `getPaymentMethods`, `getPaymentGateways`, and `refreshPaymentMethods` endpoints in InvoicesController for managing user payment options.
- Enhanced InvoicesService with methods to invalidate payment methods cache and improved error handling.
- Updated currency handling across various services and components to reflect JPY as the default currency.
- Added new dependencies in package.json for ESLint configuration.
2025-08-30 15:10:24 +09:00
T. Narantuya
5e21d2840a Update backend service image to optimized version in Docker Compose configuration 2025-08-30 11:02:02 +09:00
T. Narantuya
e13f63cf0c Update Dockerfile to install all dependencies for build and optimize production setup
- Changed the installation command to include all dependencies necessary for the build process.
- Updated comments for clarity regarding the installation of production dependencies and rebuilding critical native modules.
2025-08-30 10:58:31 +09:00
T. Narantuya
cc7235e79c Refactor Docker Compose configuration to use pre-built images for services
- Updated the frontend and backend services to use pre-built images instead of build contexts.
- Set pull_policy to never to prevent automatic image pulls, ensuring consistent deployments.
2025-08-30 10:49:53 +09:00
T. Narantuya
6f1924065b Remove obsolete fallback Docker Compose configuration for Plesk
- Deleted the compose-plesk-fallback.yaml file as it is no longer needed.
- This cleanup helps streamline the project by removing unused configurations.
2025-08-29 19:05:34 +09:00
T. Narantuya
c025993384 Refactor Dockerfile to optimize production dependency installation
- Updated the Dockerfile to install only production dependencies, skipping unnecessary scripts to streamline the build process.
- Removed the copying of node_modules from the builder stage to reduce image size and improve efficiency.
- Ensured necessary postinstall scripts are executed for essential packages like Prisma and bcrypt.
2025-08-29 18:52:31 +09:00
T. Narantuya
e9c8d193b7 Update Dockerfile to streamline production dependencies and build process
- Simplified the installation of production dependencies by copying node_modules from the builder stage.
- Enhanced the Dockerfile by removing unnecessary environment variable settings and comments for clarity.
- Ensured all necessary built applications and dependencies are included in the final image.
2025-08-29 18:46:20 +09:00
T. Narantuya
fd4bef3ffe Update Docker Compose configuration to use host network mode for services
- Changed network configuration for frontend, backend, database, and cache services to use host network mode.
- Removed port mappings to enhance service communication and simplify network management.
2025-08-29 18:41:35 +09:00
T. Narantuya
c625b978d9 Refactor Docker Compose configuration to improve service dependencies and remove unused network
- Removed the portal-network configuration and associated network settings from services.
- Added service health checks for database and cache dependencies in the backend service.
- Updated links for backend service to connect directly to database and cache services.
2025-08-29 18:37:41 +09:00
T. Narantuya
ab7492f2ab Update Docker Compose configuration to disable IPv6 for portal-network
- Set enable_ipv6 to false for the portal-network to enhance compatibility and reduce potential network issues.
- Added driver options to explicitly disable IPv6 support in the Docker network configuration.
2025-08-29 18:35:12 +09:00
T. Narantuya
638638ea89 Refactor Docker Compose configuration to enhance network management
- Removed network_mode settings for services and replaced them with a dedicated portal-network.
- Ensured all services are connected to the new bridge network for improved communication and organization.
2025-08-29 18:33:30 +09:00
T. Narantuya
8b855ca371 Update Docker Compose configuration for security and functionality
- Restrict frontend service port to localhost for enhanced security.
- Add volume mapping for secrets to the application container.
- Update healthcheck command for the database service to reflect new user and database names.
2025-08-29 18:15:05 +09:00
T. Narantuya
11f57dfd56 Update GitHub Actions workflow and add archive files to .gitignore
- Modify deploy.yml workflow configuration
- Add *.tar, *.tar.gz, *.zip to .gitignore to prevent large file commits
2025-08-29 17:41:04 +09:00
T. Narantuya
d7a4d9f24a Update Docker Compose configuration and remove obsolete GitHub Actions workflows
- Changed image references in compose-plesk.yaml to use local images for frontend and backend services.
- Deleted outdated CI and test workflow files to streamline the repository and reduce maintenance overhead.
2025-08-29 17:27:08 +09:00
T. Narantuya
3270069324 Refactor GitHub Actions workflow to remove duplicate pnpm setup step for cleaner configuration 2025-08-29 16:52:02 +09:00
T. Narantuya
b1844d7017 Add Node.js and pnpm setup in GitHub Actions workflow for improved dependency management 2025-08-29 16:50:49 +09:00
T. Narantuya
26ccf6369e Update pnpm-lock.yaml to include '@eslint/js' dependency for improved linting capabilities 2025-08-29 16:48:06 +09:00
T. Narantuya
81c0efb0b8 Remove example environment configuration files and update Dockerfile for production dependency installation
- Deleted .env.dev.example and .env.production.example files to streamline configuration management.
- Updated Dockerfile to install production dependencies recursively, ensuring all necessary packages are included during the build process.
2025-08-29 16:25:59 +09:00
T. Narantuya
1762d67e3f Update CI and test workflows to build shared package and generate Prisma client
- Added steps to build the shared package and generate the Prisma client in both CI and test workflows.
- Removed redundant build step for the shared package in the CI workflow.
2025-08-29 14:19:39 +09:00
T. Narantuya
ca68cabe76 Add public directory creation in Dockerfile to ensure it exists during build process 2025-08-29 14:17:15 +09:00
T. Narantuya
01c01d516a Add world-countries dependency to package.json and pnpm-lock.yaml for enhanced geographical data support 2025-08-29 14:12:12 +09:00
T. Narantuya
596be1414b Remove world-countries dependency from pnpm-lock.yaml to streamline package management and reduce bloat. 2025-08-29 14:12:06 +09:00
T. Narantuya
4f087d5c4c Enhance order processing and address management across components
- Updated pnpm-lock.yaml to include new dependencies and ensure consistent package versions.
- Refactored order handling in OrderOrchestrator to utilize centralized field mapping for Salesforce queries.
- Modified SalesforceOrder interface to replace Order_Type__c with Type for clarity.
- Improved error handling in UsersService during WHMCS updates to provide user-friendly messages.
- Enhanced BillingPage and ProfilePage components to streamline address management and improve user experience.
- Updated documentation to reflect changes in address handling and system architecture.
2025-08-29 14:05:33 +09:00
T. Narantuya
6c7b1b531c Refine address confirmation message in AddressConfirmation component for clarity 2025-08-29 13:27:06 +09:00
T. Narantuya
0a387275ff Refactor address handling in AuthService and SignupDto, and enhance order processing with address verification
- Updated AuthService to directly access address fields and added support for address line 2.
- Introduced AddressDto in SignupDto for structured address validation.
- Modified OrdersController to utilize CreateOrderDto for improved type safety.
- Enhanced OrderBuilder to include address snapshot functionality during order creation.
- Updated UsersService to handle address updates and added new methods in WHMCS service for client updates.
- Improved address confirmation logic in AddressConfirmation component for internet orders.
2025-08-29 13:26:57 +09:00
T. Narantuya
7155a6f044 Remove unnecessary whitespace in whmcs-api.types.ts and configure ESLint to ignore blocking during production builds in next.config.mjs 2025-08-29 11:52:01 +09:00
T. Narantuya
f1400b4e59 Update Dockerfile to generate Prisma client in production image for improved deployment consistency 2025-08-29 11:42:04 +09:00
T. Narantuya
5076c22bee Update Dockerfile to generate Prisma client before building BFF for TypeScript compatibility 2025-08-29 11:34:52 +09:00
T. Narantuya
432484180f Add tsconfig.json to Dockerfiles for BFF and Portal applications 2025-08-29 11:26:46 +09:00
T. Narantuya
c7ba33fcb8 Update Dockerfile to skip lifecycle scripts during production dependency installation 2025-08-29 10:58:01 +09:00
T. Narantuya
a68df81aee whmcs getclients array fix 2025-08-28 18:57:12 +09:00
T. Narantuya
d00c47f41e Refactor code for consistency and readability across multiple files
- Standardized JSON and URL-encoded body parser configurations in main.ts.
- Simplified method signatures in order-builder.service.ts and order-orchestrator.service.ts.
- Enhanced logging format in order-item-builder.service.ts and order-validator.service.ts.
- Cleaned up whitespace and formatting in various components and services for improved readability.
- Updated Docker commands in manage.sh to use the new syntax.
2025-08-28 18:27:11 +09:00
T. Narantuya
2eb7cc6314 catalog page consistency fix 2025-08-28 16:57:57 +09:00
T. Narantuya
47d831796c catalog fixed 2025-08-27 20:01:46 +09:00
T. Narantuya
94e1625b78 order fix 2025-08-27 10:54:05 +09:00
T. Narantuya
855fe211f7 fixed lintel errors, 2025-08-23 18:02:05 +09:00
T. Narantuya
111bbc8c91 Add email functionality and update environment configurations
- Introduced email configuration for both development and production environments in `.env.dev.example` and `.env.production.example`.
- Added SendGrid API key and email settings to support password reset and welcome emails.
- Implemented password reset and request password reset endpoints in the AuthController.
- Enhanced signup form to include additional fields such as Customer Number, address, nationality, date of birth, and gender.
- Updated various services and controllers to integrate email functionality and handle new user data.
- Refactored logging and error handling for improved clarity and maintainability.
- Adjusted Docker configuration for production deployment.
2025-08-23 17:24:37 +09:00
T. Narantuya
0c912fc04f clean up 2025-08-22 17:02:49 +09:00
T. Narantuya
43aabc7b61 structure changes 2025-08-21 15:24:40 +09:00
T. Narantuya
80580da46d Initial Customer Portal setup - production ready 2025-08-20 18:02:50 +09:00