Skip to Content
πŸ“ Project Structure

Project Structure

sitepins/ β”œβ”€β”€ .env.example # Environment variables template β”œβ”€β”€ .gitignore # Git ignore patterns β”œβ”€β”€ .husky/ # Git hooks for code quality β”œβ”€β”€ components.json # Shadcn/ui component configuration β”œβ”€β”€ next.config.js # 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 β”‚ β”œβ”€β”€ images/ # Application images β”‚ └── icons/ # Icon assets β”œβ”€β”€ scripts/ # Build and utility scripts β”‚ └── updateVersion.js # Version management script └── src/ # Source code β”œβ”€β”€ app/ # Next.js App Router β”‚ β”œβ”€β”€ (auth)/ # Authentication pages β”‚ β”‚ β”œβ”€β”€ login/ β”‚ β”‚ β”œβ”€β”€ register/ β”‚ β”‚ └── forgot-password/ β”‚ β”œβ”€β”€ (protected)/ # Protected application routes β”‚ β”‚ β”œβ”€β”€ (org)/ # Organization management β”‚ β”‚ β”œβ”€β”€ (project)/ # Project management β”‚ β”‚ β”œβ”€β”€ (site)/ # Site content management β”‚ β”‚ β”œβ”€β”€ (template)/ # Template management β”‚ β”‚ β”œβ”€β”€ checkout/ # Payment checkout β”‚ β”‚ └── support/ # Support pages β”‚ β”œβ”€β”€ api/ # API routes β”‚ β”‚ β”œβ”€β”€ auth/ # Authentication endpoints β”‚ β”‚ β”œβ”€β”€ payment/ # Payment processing β”‚ β”‚ β”œβ”€β”€ paddlehooks/ # Paddle webhooks β”‚ β”‚ └── ai/ # AI integration endpoints β”‚ β”œβ”€β”€ dashboard/ # Dashboard pages β”‚ β”œβ”€β”€ github-installed/ # GitHub app installation callback β”‚ β”œβ”€β”€ error.tsx # Error boundary β”‚ β”œβ”€β”€ layout.tsx # Root layout β”‚ β”œβ”€β”€ loading.tsx # Loading component β”‚ └── not-found.tsx # 404 page β”œβ”€β”€ actions/ # Server actions β”‚ β”œβ”€β”€ provider/ # Git provider actions β”‚ β”œβ”€β”€ user/ # User management actions β”‚ └── utils/ # Action utilities β”œβ”€β”€ auth.ts # NextAuth configuration β”œβ”€β”€ middleware.ts # Route protection middleware β”œβ”€β”€ config/ # Application configuration β”‚ β”œβ”€β”€ config.json # Main application config β”‚ β”œβ”€β”€ templates.json # Template definitions β”‚ β”œβ”€β”€ theme.json # Theme configuration β”‚ └── timezones.json # Timezone definitions β”œβ”€β”€ hooks/ # Custom React hooks β”‚ β”œβ”€β”€ use-debounce.ts # Debounce functionality β”‚ β”œβ”€β”€ use-dialog.ts # Dialog state management β”‚ β”œβ”€β”€ use-fetch.ts # Data fetching utilities β”‚ └── [other hooks] # Various utility hooks β”œβ”€β”€ layouts/ # Layout components β”‚ β”œβ”€β”€ components/ # Reusable UI components β”‚ β”œβ”€β”€ helpers/ # Layout helper functions β”‚ └── partials/ # Partial components β”œβ”€β”€ lib/ # Utility libraries β”‚ β”œβ”€β”€ constant/ # Application constants β”‚ β”œβ”€β”€ context/ # React contexts β”‚ β”œβ”€β”€ paddle/ # Paddle integration utilities β”‚ β”œβ”€β”€ utils/ # General utility functions β”‚ └── validate/ # Zod validation schemas β”œβ”€β”€ redux/ # State management β”‚ β”œβ”€β”€ features/ # Feature-specific slices β”‚ β”‚ β”œβ”€β”€ api-slice.ts # Main API slice β”‚ β”‚ β”œβ”€β”€ config/ # Configuration state β”‚ β”‚ β”œβ”€β”€ git/ # GitHub integration β”‚ β”‚ β”œβ”€β”€ media-manager/ # Media management β”‚ β”‚ β”œβ”€β”€ orgs/ # Organization management β”‚ β”‚ β”œβ”€β”€ package/ # Subscription management β”‚ β”‚ β”œβ”€β”€ project/ # Project management β”‚ β”‚ β”œβ”€β”€ provider/ # Git provider management β”‚ β”‚ └── user/ # User management β”‚ └── store.ts # Redux store configuration β”œβ”€β”€ styles/ # Global styles β”‚ β”œβ”€β”€ base.css # Base styles β”‚ β”œβ”€β”€ components.css # Component styles β”‚ β”œβ”€β”€ main.css # Main stylesheet β”‚ β”œβ”€β”€ navigation.css # Navigation styles β”‚ β”œβ”€β”€ theme.css # Theme definitions β”‚ β”œβ”€β”€ utilities.css # Utility classes β”‚ └── variables.css # CSS custom properties β”œβ”€β”€ tailwind-plugin/ # Custom Tailwind plugins β”‚ └── tw-bs-grid.js # Bootstrap-style grid plugin └── types/ # TypeScript type definitions β”œβ”€β”€ index.d.ts # Global type definitions β”œβ”€β”€ json2toml.d.ts # JSON to TOML conversion types β”œβ”€β”€ next-auth.d.ts # NextAuth type extensions └── paddle.ts # Paddle SDK types
Last updated on