Best scalable project structure
See original GitHub issue
[ ] Regression
[ ] Bug report
[X] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
I have big e-commerce apps, i planning move previous codebase from express (Typescript) to NestJS.
After reading documentation and try create nestjs project, I’m confused with project structure. In my opinion generated project structure not scalable, it strange when large codebase have project structure like that.
Currently on my backend have Controller, Model, Event, Middleware, Validator, interface, static file server (subdomain), websocket, here my current project structure
- src
- app
- controller
- model
- middleware
- validator
- event
- config
- server.ts
- route.ts
- database.ts
- ...
- routes
- sub
- static.ts
- store.ts
- product.ts
- ...
- lib
- main.ts
I’m not angular developer so i dont know how to manage project structure like that
How i for best project structure on awesome nestjs framework ?
Issue Analytics
- State:
- Created 4 years ago
- Comments:17 (4 by maintainers)
Top Results From Across the Web
High scalable folder structure in angular applications - Medium
Other tips to build scalable angular applications · Use cache as much as possible · Don't forget to write test · Use linters...
Read more >How to define a highly scalable folder structure for ... - ITNEXT
The directives , pipes and models folders contains the directives, pipes and models used across the application.
Read more >Scalable Angular Structure - Adnan Halilovic Blog
Core Module · Auth folder · Guards folder · Handlers folder · Interceptors folder · Services folder.
Read more >A Scalable Project Structure for Next.js
I'll talk more about that in another article. In this article, I want to show a neat, scalable folder structure for solo-developers or...
Read more >React Project Structure Best Practices for Scalable Application
React Project Structure Best Practices for Scalable Application · 1. Assets folder. The assets folder contains images and scss folder for styling ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@wxs77577 you can always use monorepo approach - create 2 projects in 1 repo and share common things between them as libraries/packages
@liebalogh without
modules
directory. Also, you can group common/core things as separate directories + sometimes interceptors/guards/pipes will be scoped by modules. See the following example:That’s right, but it seems thers is no
modules
folder.