organizing project help needed
Unanswered
French Angora posted this in #help-forum
French AngoraOP
I have a small project that may become a large project and I am looking for suggestion on organizing my project. Can you tell me if what I have is okay? Also because I may have some server actions that are outsize the app directory if they are marked with "use server" will the code be safe or would someone be able to access my source code via browser console
├── src
│ ├── app
│ │ ├── auth
│ │ │ ├── confirm
│ │ │ │ └── route.ts
│ │ │ └── login
│ │ │ ├── actions.ts
│ │ │ └── page.tsx
│ │ ├── error
│ │ │ └── page.tsx
│ │ ├── favicon.ico
│ │ ├── globals.css
│ │ ├── layout.tsx
│ │ ├── page.tsx
│ │ └── private
│ │ └── page.tsx
│ └── shared
│ ├── components
│ ├── server-actions
│ │ └── placeholder.ts
│ └── utils
│ ├── placeholder
│ └── supabase
│ ├── client.ts
│ ├── middleware.ts
│ └── server.ts
├── tailwind.config.ts
└── tsconfig.json
├── src
│ ├── app
│ │ ├── auth
│ │ │ ├── confirm
│ │ │ │ └── route.ts
│ │ │ └── login
│ │ │ ├── actions.ts
│ │ │ └── page.tsx
│ │ ├── error
│ │ │ └── page.tsx
│ │ ├── favicon.ico
│ │ ├── globals.css
│ │ ├── layout.tsx
│ │ ├── page.tsx
│ │ └── private
│ │ └── page.tsx
│ └── shared
│ ├── components
│ ├── server-actions
│ │ └── placeholder.ts
│ └── utils
│ ├── placeholder
│ └── supabase
│ ├── client.ts
│ ├── middleware.ts
│ └── server.ts
├── tailwind.config.ts
└── tsconfig.json
3 Replies
It is safe to store the code anywhere within your project except the public folder 😉
When it builds, the semblance of your organizational structure is abstracted away. So organization is just to beenefit the developers for the most part
French AngoraOP
okay. great to know that, thank you. Do you feel that my project is organized and okay for middle to large project or could you share a little light for a better way for me to organize it.