Skip to content

Update AWS S3 config, Docker setup, and add new GET endpoints - #65

Merged
vthish merged 14 commits into
mainfrom
development
Jun 18, 2026
Merged

vthish merged 14 commits into
mainfrom
development

Conversation

@vthish

@vthish vthish commented Jun 18, 2026

Copy link
Copy Markdown
Owner

This pull request introduces several significant backend improvements, new features, and infrastructure changes to the project. The main themes include enhancements to the fines and license modules, improved AWS S3 integration for file uploads, updates to deployment and Docker configuration, and the addition of new endpoints and data fields. These changes collectively improve system maintainability, add new administrative capabilities, and enable secure file uploads.

Backend Features and Enhancements

  • Added endpoints in fines.controller.ts for DMT (Department of Motor Traffic) to retrieve all fines and problematic licenses, and to toggle the active status of an offense instead of deleting it. [1] [2]
  • Introduced S3 file upload capability in license.service.ts and an endpoint in license.controller.ts to generate signed upload URLs, leveraging AWS SDK and configuration via environment variables. [1] [2]
  • Enhanced FinesService with methods for toggling offense status, retrieving all fines and problematic licenses for DMT, and improved handling of bulk payments and revenue calculation. [1] [2] [3]
  • Added endpoints in officers.controller.ts for police admins to list all divisions and divisional heads.

Infrastructure and Configuration

  • Updated deployment workflow (.github/workflows/depoly.yml) to use git fetch and git reset for safer, more consistent deployments, and improved Docker Compose commands for backend builds.
  • Changed the backend Dockerfile to use node:20-slim, added openssl installation, switched to npm run build before starting, and adjusted the default command for better compatibility and performance.

Data Model and Dependency Updates

  • Added is_Active boolean field to the Offence_Category model in Prisma for soft-deactivation of offenses.
  • Introduced new dependencies for AWS SDK, environment variable management, and configuration in package.json, and integrated ConfigModule and dotenv initialization in the application. [1] [2] [3] [4] [5]

Minor Improvements and Refactoring

  • Improved error handling, transaction management, and code clarity in fines.service.ts and license.service.ts, including more robust revenue calculations and unique user data handling. [1] [2] [3]

These changes collectively enhance the backend's capabilities, security, and maintainability, while introducing new features for both end-users and administrators.

@vthish
vthish merged commit 5a7e844 into main Jun 18, 2026
1 check passed
vthish added a commit that referenced this pull request Jun 27, 2026
Update AWS S3 config, Docker setup, and add new GET endpoints
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant