The monorepo contains unit microservices e.g home-service for sharing posts, chat-service for real-time dual/group chatting, auth-service, email-service, api-gateway for redirecting requests to appropriate services, bullmq as message bus, socket.io used for realtime data.
cascade delete posts when a user is permanently deleted from db (comment not needed to delete from user model's hook. if user deletes posts, posts will automatically delete comments as implemented)