Skip to content

feat: migrate product, wishlist, and review modules into a standalone…#285

Open
nikhildhamdhere15 wants to merge 3 commits into
niharika-mente:mainfrom
nikhildhamdhere15:main
Open

feat: migrate product, wishlist, and review modules into a standalone…#285
nikhildhamdhere15 wants to merge 3 commits into
niharika-mente:mainfrom
nikhildhamdhere15:main

Conversation

@nikhildhamdhere15

Copy link
Copy Markdown

Hi Admin,

I have completed the task for SSoC26 by migrating the Product, Wishlist, and Review modules out of the monolith and into a standalone microservice.

Summary of Changes:

  • Monolith Clean-up (BACKEND/app.js): Removed the old /api/products, /api/wishlist, and /api/reviews imports and route middleware to prevent conflicts.
  • Redundant Files Deleted: Removed the old controller, model, and route files from the main monolithic backend directories.
  • Microservice Created (BACKEND/services/product-service):
    • Created a dedicated server.js file to initialize the microservice independently on port 5001 with its own database connection, Cors, and Helmet configurations.
    • Relocated all relevant controllers, models, and routes into this self-contained directory.
    • Corrected all relative internal import paths across the new files to make the service fully functional and isolated.

The code is clean, updated, and ready for your review!

Best regards,
@nikhildhamdhere15

@vercel

vercel Bot commented Jun 16, 2026

Copy link
Copy Markdown

@deepak70 is attempting to deploy a commit to the niharika-mente's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Aamod-Dev Aamod-Dev added SSoC26 Hard enhancement New feature or request backend For changes related to the Express server, API routes, or MongoDB models refactor Clean up the code, improve performance, or reorganize files without adding new features to the UI labels Jun 18, 2026
@Aamod-Dev

Copy link
Copy Markdown
Collaborator

Review: Microservices architecture migration. This is a massive architectural overhaul. Critical review points: service boundaries design, inter-service communication protocol, API gateway implementation, service discovery mechanism, database per service or shared, deployment strategy, monitoring and logging, backward compatibility. This changes the entire project structure. Requires thorough architecture review and deployment planning. Very high complexity.

@Aamod-Dev

Copy link
Copy Markdown
Collaborator

Review: Microservices migration is a massive architectural change. Verify service boundaries, inter-service communication, API gateway, service discovery, database strategy, deployment plan, and monitoring. Requires thorough architecture review. Very high complexity PR.

@nikhildhamdhere15 nikhildhamdhere15 marked this pull request as draft June 18, 2026 12:56
@nikhildhamdhere15 nikhildhamdhere15 marked this pull request as ready for review June 18, 2026 12:56
@nikhildhamdhere15

Copy link
Copy Markdown
Author

Hi @Aamod007,

Thank you for the detailed architectural review!

I have successfully resolved the merge conflicts locally by keeping the old monolithic controller and model files deleted, ensuring a clean transition to the new structure.

To address your notes on the architecture:

  • Service Boundaries & Communication: The Product, Wishlist, and Review modules are now completely isolated inside BACKEND/services/product-service and run independently on port 5001.
  • Database Strategy: The microservice invokes the shared connectDB utility to initialize its own separate operational connection, keeping its lifecycle distinct from the main monolith framework.
  • Monolith Clean-up: I have safely stripped the old routes from the main app.js to ensure clean boundaries and prevent routing conflicts.

The branch is now conflict-free and ready for your deep review and deployment planning!

Aamod-Dev
Aamod-Dev previously approved these changes Jun 20, 2026

@Aamod-Dev Aamod-Dev left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Microservice extraction for product/wishlist/review modules into services/product-service/. Original routes removed from main app. Note: the gateway �pp.js no longer mounts these routes — the microservice must run separately on port 5001. Ensure deployment infra accounts for this. Safe to merge.

@Aamod-Dev

Copy link
Copy Markdown
Collaborator

PR has merge conflicts preventing clean merge. Please rebase on main.

@nikhildhamdhere15

Copy link
Copy Markdown
Author

Hi @Aamod-Dev, I have successfully rebased on main and resolved the fresh merge conflicts. The branch is now clean and ready to be merged!

@Aamod-Dev Aamod-Dev left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Request Changes

  • All product/wishlist/review routes removed from main app but microservice at port 5001 has no API gateway or proxy. Frontend requests will fail.
  • Microservice controller is extremely basic — no image upload, no search, no pagination, no soft delete, no validation.
  • Model import path is ../models/product.js instead of ../models/product.model.js. Will not find existing model.
  • Keep the old controller until the microservice is fully featured and a gateway is in place.

@Aamod-Dev

Copy link
Copy Markdown
Collaborator

Removes product API without working replacement

@Aamod-Dev Aamod-Dev closed this Jun 20, 2026
@Aamod-Dev Aamod-Dev reopened this Jun 20, 2026

@Aamod-Dev Aamod-Dev left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, approved!

@Aamod-Dev Aamod-Dev left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs changes: There are merge conflicts. Please resolve them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend For changes related to the Express server, API routes, or MongoDB models enhancement New feature or request Hard refactor Clean up the code, improve performance, or reorganize files without adding new features to the UI SSoC26

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants