Skip to content

feat(setup): init NestJS with PostgreSQL, RabbitMQ, & Mailer#1

Merged
ObiFaith merged 51 commits into
devfrom
chore/project-initial-setup
Nov 13, 2025
Merged

feat(setup): init NestJS with PostgreSQL, RabbitMQ, & Mailer#1
ObiFaith merged 51 commits into
devfrom
chore/project-initial-setup

Conversation

@ObiFaith

@ObiFaith ObiFaith commented Nov 10, 2025

Copy link
Copy Markdown
Owner

Description

Bootstrap the Email Service project with essential modules for initial setup:

  • @nestjs/microservices → RabbitMQ transport
  • @nestjs/typeorm → PostgreSQL connection
  • @nestjs/config → environment management
  • @nestjs-modules/mailer → SMTP email sending

Added .env support for RabbitMQ, PostgreSQL, and SMTP credentials. Configured initial AppModule and microservice bootstrap.

Type of Change

  • feat: New feature
  • fix: Bug fix
  • docs: Documentation updates
  • style: Code style/formatting changes
  • refactor: Code refactoring
  • perf: Performance improvements
  • test: Test additions/updates
  • chore: Build process or tooling changes
  • ci: CI configuration changes
  • other:

How Has This Been Tested?

  • Manual test: Started the NestJS microservice, verified RabbitMQ connection and DB connection logs.

Test Evidence

  • Microservice started without errors
  • PostgreSQL connection established

Screenshots (if applicable)

Checklist

  • My code follows the project's coding style
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published
  • I have included a screenshot showing all tests passing
  • I have included documentation screenshots (if applicable)

Additional Notes

  • This PR lays the foundation for consuming email messages from RabbitMQ and sending emails.
  • Future PRs will add the email consumer, template fetching, and notification status logging.

@ObiFaith ObiFaith changed the title feat(setup): initialize NestJS project with PostgreSQL, RabbitMQ, and… feat(setup): init NestJS with PostgreSQL, RabbitMQ, & Mailer Nov 10, 2025
@babatundeibukun
babatundeibukun changed the base branch from main to dev November 11, 2025 22:55
arithenshaw and others added 26 commits November 12, 2025 05:39
chore: fix redis + rabbitmq connection configs for cloud deployment
…eSQL, Redis, and RabbitMQ integration

- Added Template Service microservice for managing notification templates
- Implemented CRUD endpoints for templates (create, list, get)
- Integrated PostgreSQL with SQLAlchemy + Alembic migrations
- Connected Redis for caching and quick lookups
- Integrated RabbitMQ for asynchronous message publishing
- Added Swagger documentation for all endpoints
- Implemented health check endpoint (/health)
- Added detailed logging and error handling
- Ensured consistent response format and snake_case naming
- Prepared Dockerfile and environment variables for deployment
@ObiFaith
ObiFaith merged commit ad9b9ab into dev Nov 13, 2025
6 of 7 checks passed
@ObiFaith
ObiFaith deleted the chore/project-initial-setup branch November 13, 2025 18:50
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.

3 participants