#Nestjs best practices when organising projects

1 messages · Page 1 of 1 (latest)

mild mulch
#

Hi everyone,

I'm just in the process of setting up my first Nestjs project and I've got a question in regards to project structure.

Does anyone have any suggestions for how a Nest peoj CT should be set up ?

I was thinking of having of grouping the main controllers and services together and then having a services folder which contains services used across multiple controllers and services.

Any comments and feedback would be great 👍

heady thistle
#

I personally group by feature, so all auth, all books, all authors, all comments, etc. are grouped in their own folder. Helps define domain lines and see where you start tightly coupling things together

#

@brisk frigate what's that article you wrote on this? I don't have the link on hand

brisk frigate
#

@heady thistle @mild mulch - This is my article on the subject of project structure. Enjoy. 🙂

fresh ivy
#

I'd like to read that article too 😄

analog needle
woeful surge
#

I think this is the article @brisk frigate meant