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
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.
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)
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
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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
@stephan418 commented on GitHub (Oct 14, 2021):
@detleph/backend should be included in the decision process
@Stefan-5422 commented on GitHub (Oct 15, 2021):
@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.
@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)
@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:
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
@Stefan-5422 commented on GitHub (Oct 18, 2021):
Well just go with this