{"id":26884218,"url":"https://github.com/holedev/nextjs-15-template-clinerules","last_synced_at":"2025-07-31T10:14:44.222Z","repository":{"id":284720159,"uuid":"955830755","full_name":"holedev/nextjs-15-template-clinerules","owner":"holedev","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-27T10:09:50.000Z","size":88,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T10:35:33.254Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/holedev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-27T09:11:24.000Z","updated_at":"2025-03-27T10:00:27.000Z","dependencies_parsed_at":"2025-03-27T10:47:12.656Z","dependency_job_id":null,"html_url":"https://github.com/holedev/nextjs-15-template-clinerules","commit_stats":null,"previous_names":["holedev/nextjs-15-template-clinerules"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holedev%2Fnextjs-15-template-clinerules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holedev%2Fnextjs-15-template-clinerules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holedev%2Fnextjs-15-template-clinerules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holedev%2Fnextjs-15-template-clinerules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/holedev","download_url":"https://codeload.github.com/holedev/nextjs-15-template-clinerules/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246514617,"owners_count":20790019,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-31T17:56:31.197Z","updated_at":"2025-03-31T17:56:33.572Z","avatar_url":"https://github.com/holedev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Next.js TypeScript Template with Shadcn UI\n\nA modern Next.js project template featuring TypeScript, Shadcn UI, and best practices for building scalable web applications.\n\n## Features\n\n- ⚡ [Next.js App Router](https://nextjs.org/docs/app) for optimal performance and routing\n- 🎨 [Shadcn UI](https://ui.shadcn.com/) for beautiful, accessible components\n- 📝 TypeScript for type safety and better developer experience\n- 🚀 Server Components by default for improved performance\n- 🔄 API routes with Swagger documentation\n- 🎯 ESLint and Prettier for code quality\n- 🛠️ Modern project structure following best practices\n\n## Tech Stack\n\n- **Framework:** [Next.js 15](https://nextjs.org/)\n- **Styling:** [Tailwind CSS](https://tailwindcss.com/) with Shadcn UI\n- **Language:** [TypeScript](https://www.typescriptlang.org/)\n- **Package Manager:** [pnpm](https://pnpm.io/)\n\n## Getting Started\n\n### Prerequisites\n\n- Node.js 18+ \n- pnpm (recommended package manager)\n\n### Installation\n\n```bash\n# Clone the repository\ngit clone \u003cyour-repo-url\u003e\n\n# Navigate to project directory\ncd \u003cproject-name\u003e\n\n# Install dependencies\npnpm install\n```\n\n### Development\n\n```bash\n# Start development server\npnpm dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n\n## Project Structure\n\n```\n├── app/                   # App router directories\n│   ├── api/              # API routes with Swagger documentation\n│   ├── (routes)/         # App routes and pages\n│   └── layout.tsx        # Root layout\n├── components/           # Shared components\n│   └── ui/              # UI components\n├── lib/                  # Utilities and helpers\n└── public/              # Static assets\n```\n\n## Best Practices\n\n### Components\n- Use Server Components by default\n- Mark client components explicitly with 'use client'\n- Wrap client components in Suspense with fallback\n- Use dynamic loading for non-critical components\n- Implement proper error boundaries\n\n### Performance\n- Optimize images with WebP format and proper sizing\n- Minimize use of useEffect and setState\n- Favor Server Components (RSC) where possible\n- Implement proper caching strategies\n\n### API Routes\n- Include Swagger documentation for all API routes\n- Implement proper error handling\n- Use appropriate HTTP methods and status codes\n\n### Forms and Validation\n- Use Zod for form validation\n- Implement server-side validation\n- Handle form errors appropriately\n- Show loading states during form submission\n\n### State Management\n- Minimize client-side state\n- Use React Context sparingly\n- Prefer server state when possible\n- Implement proper loading states\n\n## Development Guidelines\n\n1. **Branching:**\n   - Main branch for production\n   - Dev branch for development\n   - Feature branches for new features\n\n2. **Commit Messages:**\n   - Use clear, descriptive commit messages\n   - Follow conventional commits format\n\n3. **Code Style:**\n   - Follow ESLint and Prettier configurations\n   - Use TypeScript's strict mode\n   - Document complex logic with comments\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholedev%2Fnextjs-15-template-clinerules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fholedev%2Fnextjs-15-template-clinerules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholedev%2Fnextjs-15-template-clinerules/lists"}