Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Architecture] Folder Structure #85

Open
reboottime opened this issue May 7, 2024 · 1 comment
Open

[Architecture] Folder Structure #85

reboottime opened this issue May 7, 2024 · 1 comment

Comments

@reboottime
Copy link
Owner

reboottime commented May 7, 2024

For Turbo Repository

πŸ“‚ project
┣ πŸ“‚ apps
┃ ┣ πŸ“‚ web
┃ ┃ ┣ πŸ“‚ src
┃ ┃ ┃ β”— πŸ“‚ ...
┃ ┃ ┣ πŸ“œ package.json
┃ ┃ β”— πŸ“œ turbo.json
┃ ┣ πŸ“‚ mobile
┃ ┃ ┣ πŸ“‚ src
┃ ┃ ┃ β”— πŸ“‚ ...
┃ ┃ ┣ πŸ“œ package.json
┃ ┃ β”— πŸ“œ turbo.json
┃ β”— πŸ“‚ backend
┃   ┣ πŸ“‚ src
┃   ┃ ┣ πŸ“‚ controllers
┃   ┃ ┣ πŸ“‚ services
┃   ┃ ┣ πŸ“‚ models
┃   ┃ β”— πŸ“œ index.ts
┃   ┣ πŸ“œ package.json
┃   β”— πŸ“œ turbo.json
┣ πŸ“‚ packages
┃ ┣ πŸ“‚ ui
┃ ┃ ┣ πŸ“‚ src
┃ ┃ ┃ β”— πŸ“‚ ...
┃ ┃ ┣ πŸ“œ package.json
┃ ┃ β”— πŸ“œ turbo.json
┃ ┣ πŸ“‚ utils
┃ ┃ ┣ πŸ“‚ src
┃ ┃ ┃ β”— πŸ“‚ ...
┃ ┃ ┣ πŸ“œ package.json
┃ ┃ β”— πŸ“œ turbo.json
┃ β”— πŸ“‚ types
┃   ┣ πŸ“‚ src
┃   ┃ ┣ πŸ“œ user.ts
┃   ┃ ┣ πŸ“œ product.ts
┃   ┃ β”— πŸ“œ index.ts
┃   ┣ πŸ“œ package.json
┃   β”— πŸ“œ turbo.json
┣ πŸ“œ package.json
β”— πŸ“œ turbo.json
@reboottime
Copy link
Owner Author

reboottime commented May 7, 2024

For Monolithic Repository

Take a CMS management system as an exmaple

πŸ“‚ app
 ┣ πŸ“‚ node_modules
 ┣ πŸ“‚ public
 ┣ πŸ“‚ src
 ┃ ┣ πŸ“‚ @types
 ┃ ┣ πŸ“‚ common
 ┃ ┃ ┣ πŸ“‚ services
 ┃ ┃ ┣ πŸ“‚ assets
 ┃ ┃ ┣ πŸ“‚ hooks
 ┃ ┃ ┣ πŸ“‚ components
 ┃ ┃ β”— πŸ“‚ utils
 ┃ ┣ πŸ“‚ pages
 ┃ ┃ ┣ πŸ“‚ account-manager
 ┃ ┃ ┣ πŸ“‚ dashboard
 ┃ ┃ ┣ πŸ“‚ main
 ┃ ┃ ┣ πŸ“‚ posts
 ┃ ┃ ┣ πŸ“‚ profile
 ┃ ┃ ┣ πŸ“‚ settings
 ┃ ┃ ┃ ┣ πŸ“‚ components
 ┃ ┃ ┃ ┣ πŸ“‚ utils
 ┃ ┃ ┃ ┣ πŸ“‚ services
 ┃ ┃ ┃ ┣ πŸ“‚ hooks
 ┃ ┃ ┃ ┣ πŸ“œ settings-page.tsx
 ┃ ┃ ┃ β”— πŸ“œ index.ts
 ┃ ┃ ┣ πŸ“‚ sign-in
 ┃ ┃ β”— πŸ“‚ sign-up
 ┃ ┣ πŸ“‚ setup
 ┃ ┃ ┣ πŸ“œ global.css
 ┃ ┃ ┣ πŸ“œ app.tsx
 ┃ ┃ β”— πŸ“œ routes.tsx
 ┃ β”— πŸ“œ index.ts
 
 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant