AI友好的,基于 Next.js 15+ 的应用模板。
- ⚡ Next.js 15+ with App Router
- 🔷 TypeScript support
- 🎨 Tailwind CSS for styling
- 🎯 ShadCN UI component library
- 🔄 ISR (Incremental Static Regeneration) enabled
- 🌐 Vercel deployment ready
- 📱 Responsive design
- 🌙 Dark mode support
- 🤖 Claude Code 增强支持
- 🔔 智能语音提醒 - 任务完成、会话状态变化音效反馈
- 📁 自动化目录维护 - 智能更新项目目录结构文档
- ⚡ 自定义命令集
/commit- 智能分析代码变更并生成规范的提交信息/brainstorm- AI 头脑风暴辅助/review-promax- 四模型并行代码审查/describe-files- 自动维护文件描述/weather- 天气查询功能
- 🎯 专业 AI 代理
- 代码审查专家 - 专业的代码质量分析
- 调试专家 - 错误诊断和修复建议
- 🎣 智能钩子系统 - 8 种事件钩子,全面监控开发流程
- Node.js 18.x or later
- npm, yarn, pnpm, or bun
-
Clone the repository
git clone https://github.com/LambdaTheory/ai-code-template-website cd ai-code-template-website -
Install dependencies
pnpm install
-
Start the development server
pnpm dev
-
Open your browser
Visit http://localhost:3000 to see the application.
This template includes pre-configured ShadCN UI components:
- Button - Customizable button component
- Card - Card layout component
- More components can be added using:
npx shadcn@latest add <component-name>
The template includes ISR configuration:
- Example page:
/isr-demo- Demonstrates ISR with 60-second revalidation - Configuration: Set
revalidateexport in page components - Benefits: Static generation with periodic updates
-
Push to GitHub
git add . git commit -m "Initial commit" git push origin main
-
Deploy to Vercel
- Visit vercel.com
- Import your GitHub repository
- Deploy automatically
-
Manual deployment
npm run build vercel deploy
The application can be deployed to any platform supporting Next.js:
- Netlify
- AWS
- Google Cloud
- Railway
- Render
npm run dev- Start development server with Turbopacknpm run build- Build for productionnpm run start- Start production servernpm run lint- Run ESLint
Configuration in tailwind.config.js and src/app/globals.css
Configuration in components.json
Configuration in next.config.ts with ISR and caching optimizations
Configuration in vercel.json for deployment settings
// Set revalidation time (in seconds)
export const revalidate = 60
export default async function MyPage() {
// Your page content
}import { Button } from "@/components/ui/button";
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
export default function MyComponent() {
return (
<Card>
<CardHeader>
<CardTitle>My Card</CardTitle>
</CardHeader>
<CardContent>
<Button>Click me</Button>
</CardContent>
</Card>
);
}- Fork the repository
- Create your feature branch:
git checkout -b feature/amazing-feature - Commit your changes:
git commit -m 'Add amazing feature' - Push to the branch:
git push origin feature/amazing-feature - Open a Pull Request
This project is licensed under the MIT License.
Built with ❤️ using Next.js, Tailwind CSS, and ShadCN UI