[GH-ISSUE #2] Define default folder structure #2

Closed
opened 2026-09-04 00:21:28 +02:00 by Stone_Red · 5 comments
Owner

Originally created by @stephan418 on GitHub (Oct 14, 2021).
Original GitHub issue: https://github.com/detleph/server/issues/2

Originally assigned to: @Stefan-5422 on GitHub.

There should be a defined folder structure that everone sticks to

Originally created by @stephan418 on GitHub (Oct 14, 2021). Original GitHub issue: https://github.com/detleph/server/issues/2 Originally assigned to: @Stefan-5422 on GitHub. There should be a defined folder structure that everone sticks to
Stone_Red added the documentation label 2026-09-04 00:21:28 +02:00
Author
Owner

@stephan418 commented on GitHub (Oct 14, 2021):

@detleph/backend should be included in the decision process

<!-- gh-comment-id:943282910 --> @stephan418 commented on GitHub (Oct 14, 2021): @detleph/backend should be included in the decision process
Author
Owner

@Stefan-5422 commented on GitHub (Oct 15, 2021):

src:
  cat1:
    controller
    model
  cat2:
    controller
    model
  Models:
routes:
  router1
  router2

@stephan418 is the Folder structure I normally use for my APIs this is also diffrernt from the one which would be used on a react project.

<!-- gh-comment-id:944050162 --> @Stefan-5422 commented on GitHub (Oct 15, 2021): ``` src: cat1: controller model cat2: controller model Models: routes: router1 router2 ``` @stephan418 is the Folder structure I normally use for my APIs this is also diffrernt from the one which would be used on a react project.
Author
Owner

@stephan418 commented on GitHub (Oct 15, 2021):

Are there any preexisting projects which we could use as a reference for project structure? I also don' think creating models does make any sense when using prisma (Type objects and so on)

<!-- gh-comment-id:944125018 --> @stephan418 commented on GitHub (Oct 15, 2021): Are there any preexisting projects which we could use as a reference for project structure? I also don' think creating models does make any sense when using prisma (Type objects and so on)
Author
Owner

@Stefan-5422 commented on GitHub (Oct 16, 2021):

Models where only there because I took the structure from an existing project.
There are 2 main ones the one I use and one which looks like this:

src:
  routes:
    router1
    router2
  models:
    model1
    model2
 controllers:
   controller1
   controller2

Also with model I mean the models from the view model controller schema, which I do agree might not bee needed with us using Prisma but that will be seen once more code is in place

<!-- gh-comment-id:945019569 --> @Stefan-5422 commented on GitHub (Oct 16, 2021): Models where only there because I took the structure from an existing project. There are 2 main ones the one I use and one which looks like this: ``` src: routes: router1 router2 models: model1 model2 controllers: controller1 controller2 ``` Also with model I mean the models from the view model controller schema, which I do agree might not bee needed with us using Prisma but that will be seen once more code is in place
Author
Owner

@Stefan-5422 commented on GitHub (Oct 18, 2021):

Well just go with this

<!-- gh-comment-id:945531801 --> @Stefan-5422 commented on GitHub (Oct 18, 2021): Well just go with this
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: detleph/server#2