Skip to Content
πŸ“ Project Structure

Project Structure

sitepins/ β”œβ”€β”€ .env.example # Environment variables template β”œβ”€β”€ .gitignore # Git ignore patterns β”œβ”€β”€ components.json # Shadcn/ui component configuration β”œβ”€β”€ next.config.mjs # Next.js configuration β”œβ”€β”€ package.json # Dependencies and scripts β”œβ”€β”€ postcss.config.mjs # PostCSS configuration β”œβ”€β”€ tsconfig.json # TypeScript configuration β”œβ”€β”€ yarn.lock # Dependency lock file β”œβ”€β”€ public/ # Static assets └── src/ # Source code β”œβ”€β”€ app/ # Next.js App Router β”‚ β”œβ”€β”€ (auth)/ # Authentication pages (login, register) β”‚ β”œβ”€β”€ [orgId]/ # Organization routes β”‚ β”‚ β”œβ”€β”€ [projectId]/ # Project-specific routes β”‚ β”‚ β”‚ β”œβ”€β”€ code/ # Code editing interface β”‚ β”‚ β”‚ β”œβ”€β”€ configs/ # Project settings β”‚ β”‚ β”‚ β”œβ”€β”€ files/ # Content management & file explorer β”‚ β”‚ β”‚ └── media/ # Media management β”‚ β”‚ └── settings/ # Organization settings β”‚ β”œβ”€β”€ api/ # API routes (auth, payment, etc.) β”‚ β”œβ”€β”€ checkout/ # Subscription checkout flow β”‚ β”œβ”€β”€ dashboard/ # User dashboard β”‚ β”œβ”€β”€ github-installed/ # GitHub app installation callback β”‚ β”œβ”€β”€ gitlab-installed/ # GitLab OAuth callback β”‚ β”œβ”€β”€ new/ # Project creation flow β”‚ └── templates/ # Template selection and preview β”œβ”€β”€ actions/ # Server actions β”œβ”€β”€ config/ # Static configuration files β”œβ”€β”€ contexts/ # React context providers β”œβ”€β”€ hooks/ # Custom React hooks β”œβ”€β”€ layouts/ # Major layout components (editor, dashboard) β”‚ β”œβ”€β”€ components/ # Shared UI components β”‚ └── editor/ # Plate-based editor components β”œβ”€β”€ lib/ # Shared utilities and core logic β”‚ β”œβ”€β”€ utils/ # General utility functions β”‚ └── validate/ # Validation schemas β”œβ”€β”€ redux/ # Redux state management β”‚ β”œβ”€β”€ features/ # Feature slices (gitlab, github, orgs, etc.) β”‚ └── store.ts # Store configuration β”œβ”€β”€ styles/ # Global CSS and themes └── types/ # TypeScript definitions
Last updated on