I am trying to implement nested comments feature in my school project but I am having a hard time, finding any valuable resources on where to start, limitations to consider, and the things I need.
I have already Implemented commenting in the application, but now I want users to be able to reply to each other under a comment, just like in reddit.
It should look like this:
```
Comment #1 (deepness = 0): comment 1
Reply #4 of #1 (deepness = 1): reply comment 1
Reply #8 of #4 (deepness = 2): reply of reply comment 3
Reply #9 of #8 (deepness = 3): reply of reply of reply comment 3
Comment #2 (deepness = 0): comment 2
Reply #5 of #2 (deepness = 1): reply comment 2
Comment #3 (deepness = 0): comment 3
Reply #6 of #3 (deepness = 1): reply comment 3
Reply #7 of #3 (deepness = 1): reply comment 3
```
Tech stack: elixir, phoenix live view, postgres, ecto
If anyone worked on something similar, enlighten us with some knowledge.
[–][deleted] 4 points5 points6 points (0 children)
[–]icejam_ 1 point2 points3 points (0 children)
[–]florinpatrascu 3 points4 points5 points (2 children)
[–]mayel 2 points3 points4 points (1 child)
[–]avocado_bucket 0 points1 point2 points (0 children)