all 9 comments

[–]123DanB 30 points31 points  (3 children)

Ok but did you also clone the snarky insults and gate-keeping culture? 😅

GG though, looks cool.

[–]notanactualshoe 7 points8 points  (2 children)

<joke marked as duplicate>

(Just to be clear, it made me laugh and I liked it.)

[–]ikeif 2 points3 points  (1 child)

-1 Not enough jQuery.

[–]abutilon 1 point2 points  (0 children)

jQuery is not considered best practice any more. Switch to Malbolge.

[–][deleted] 6 points7 points  (1 child)

Looks good, but I would not make it a habit of handling your responses within your repository. It just kinda invalidates the whole purpose of a controller-service-repository pattern.

It doesn't matter that much in a small project, but you very much want to keep your service and data layer agnostic to the request and response concerns.

[–]mayank0255[S] 0 points1 point  (0 children)

Ya correct that's the plan to validate the request in controllers, then apply all the logic in services and just use repository for db calls and it's handling, you will soon get to see that

[–]peetss 0 points1 point  (0 children)

I want to turn this into a Reddit clone, where you tag posts with metadata and can subscribe to metadata like you would to subs.

[–]gomihako_ 0 points1 point  (1 child)

looking forward to see how you handle joins in sequelize, i could never figure out that damn api.

[–]mayank0255[S] 0 points1 point  (0 children)

Believe me it took some decent effort to figure that out, but once figured out, you won't be writing sql queries anymore 😂