Howdy! This starter kit is designed for those who want a clean, extensible foundation for building modern, full-stack web applications with authentication using Next.js 15, TypeScript, Prisma, and Tailwind CSS.
Clone and set up the project in minutes:
git clone https://github.com/christopherrobin/Christophers-Next-Template
cd Christophers-Next-Template
yarn install
.env.local.example
to .env.local
and fill in your database and secret values.yarn prisma migrate deploy
yarn dev
Visit http://localhost:3000 to view the app.
src/app/
— Next.js App Router pages (home, join, sign-in, dashboard)src/components/
— Reusable UI components (Button, Spinner, Providers)src/lib/
— Prisma and authentication logicprisma/
— Prisma schema and migrationspublic/
— Static assets and icons__tests__/
— Unit and component testse2e/
— End-to-end testsExtend or modify any part to fit your project:
src/app/
src/components/
src/lib/auth.ts
yarn dev
— Start development serveryarn build
— Build for productionyarn start
— Start production serveryarn prisma:migrate
— Deploy database migrationsyarn lint
/ yarn lint:fix
— Lint codeyarn format
/ yarn format:fix
— Format codeyarn run nuke
— Remove node_modules, reinstall dependencies, and rebuildyarn run clean
— Lint, format, and prettify all codeDATABASE_PUBLIC_URL
— PostgreSQL connection stringNEXTAUTH_SECRET
— Secret for NextAuth.jsThis project uses Heroicons for modern SVG icons in React components.
@heroicons/react
package is installed as a dependency.<RocketLaunchIcon className="w-5 h-5" />
.Button
component supports passing icons as startIcon
or endIcon
props.For more icons and usage details, see the Heroicons documentation.
This project supports two main testing methods:
Unit & Component Testing (Jest + Testing Library):
yarn test
yarn test __tests__/Button.test.tsx
End-to-End (E2E) Testing (Playwright):
yarn test:e2e
See the test files in __tests__/
and e2e/
directories for examples.
This project is open source and available under the MIT License.