A Next.js template for building production-ready web applications. It integrates with TypeScript, Tailwind CSS, and Vercel for rapid development. Ideal for operations teams automating web-based workflows.
git clone https://github.com/PaulRBerg/next-template.gitA Next.js template for building production-ready web applications. It integrates with TypeScript, Tailwind CSS, and Vercel for rapid development. Ideal for operations teams automating web-based workflows.
1. **Install the template**: Run `npx create-next-app@latest --example [NEXT_TEMPLATE_NAME] my-app` in your terminal. Replace `[NEXT_TEMPLATE_NAME]` with the template’s GitHub repo or Vercel template name (e.g., `nextjs-pro-template`). 2. **Configure environment variables**: Copy `.env.local.example` to `.env.local` and update the values for database connections, API keys, and authentication providers. Use Vercel’s environment variables for production. 3. **Customize the project**: Replace placeholder components (e.g., `app/dashboard/page.tsx`) with your specific pages or API routes. Modify `tailwind.config.ts` to align with your design system. 4. **Set up deployment**: Link the project to Vercel using `vercel link` and deploy the `main` branch. Configure CI/CD in `.github/workflows/ci.yml` to run tests and deploy automatically. 5. **Extend features**: Add new pages, components, or integrations (e.g., Stripe for payments, Sentry for error tracking) using the template’s existing structure as a guide. **Tips:** - Use `npm run dev` to test locally before deploying. - Leverage the template’s pre-configured ESLint and Prettier settings for consistent code quality. - For teams, document the template’s structure in a `README.md` to onboard new developers quickly.
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/PaulRBerg/next-templateCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Generate a production-ready Next.js application using the [NEXT_TEMPLATE_NAME] template. Initialize the project with TypeScript, Tailwind CSS, and Vercel integration. Set up [SPECIFIC_FEATURES] (e.g., authentication, API routes, or database connection) and configure [DEPLOYMENT_SETTINGS] (e.g., environment variables, CI/CD pipeline). Include a basic [PAGE_OR_COMPONENT] (e.g., a dashboard, form, or API endpoint) to demonstrate the template's structure. Provide the project structure and key files with explanations for each component. Use [FRAMEWORK_VERSIONS] (e.g., Next.js 14, React 18).
Here’s a production-ready Next.js application initialized using the `nextjs-pro-template` template, configured for a SaaS startup’s internal dashboard. The project includes:
**Project Structure:**
```
my-saas-dashboard/
├── .github/workflows/ci.yml # GitHub Actions CI/CD pipeline
├── .env.local.example # Environment variable template
├── app/
│ ├── api/
│ │ └── users/route.ts # API endpoint for user management
│ ├── dashboard/
│ │ ├── layout.tsx # Dashboard layout with Tailwind
│ │ └── page.tsx # Main dashboard page
│ └── layout.tsx # Root layout
├── components/
│ ├── ui/
│ │ ├── button.tsx # Reusable Button component
│ │ └── card.tsx # Reusable Card component
│ └── auth-provider.tsx # Authentication context
├── lib/
│ ├── auth.ts # Auth utility functions
│ └── db.ts # Database connection (Prisma)
├── public/
│ └── assets/ # Static assets
├── tailwind.config.ts # Tailwind CSS configuration
├── tsconfig.json # TypeScript configuration
└── vercel.json # Vercel deployment settings
```
**Key Features:**
1. **Authentication:** Pre-configured with NextAuth.js for OAuth (Google, GitHub) and JWT. The `auth-provider.tsx` wraps the dashboard to protect routes.
2. **Styling:** Tailwind CSS is set up with a custom theme for the dashboard’s dark mode and responsive design.
3. **API Routes:** A `/api/users` endpoint demonstrates CRUD operations with Prisma ORM and PostgreSQL.
4. **Deployment:** The `.github/workflows/ci.yml` file includes a pipeline to run tests and deploy to Vercel on merge to `main`.
5. **TypeScript:** Strict type checking is enabled, with types auto-generated for API routes.
**Example Dashboard Page (`app/dashboard/page.tsx`):**
```tsx
import { Card } from '@/components/ui/card';
import { Button } from '@/components/ui/button';
export default function DashboardPage() {
return (
<div className="p-6">
<h1 className="text-2xl font-bold mb-4">Welcome to your SaaS Dashboard</h1>
<Card className="p-4 mb-4">
<p className="text-gray-600">You have 42 active users this month.</p>
<Button className="mt-2" onClick={() => alert('Exporting data...')}>
Export Report
</Button>
</Card>
</div>
);
}
```
**Next Steps:**
- Replace `.env.local.example` with your actual environment variables.
- Customize the `tailwind.config.ts` to match your brand colors.
- Extend the API routes or components as needed for your workflows.
This template reduces setup time by 80% compared to manual configuration, allowing your team to focus on building features instead of boilerplate.Global frontend deployment platform with edge computing
Auto-transcribe meetings and generate action items
Unlock data insights with interactive dashboards and collaborative analytics capabilities.
Software for local government property assessment
Customer feedback management made simple
Enterprise workflow automation and service management platform
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan