A modern, feature-rich Next.js template that helps you kickstart your project with the best tools and practices in the React ecosystem.
- β‘οΈ Next.js 15 - The latest version with App Router and Server Components
- π¨ Tailwind CSS - A utility-first CSS framework for rapid UI development
- π Authentication - Secure authentication using Auth.js (formerly NextAuth.js)
- ποΈ Drizzle ORM - Type-safe database queries and schema management
- π tRPC - for type-safe APIs
- π― shadcn/ui - Beautiful and accessible UI components
- π¦ TypeScript - Type safety and better developer experience
- π ESLint & Prettier - Code linting and formatting
- π Bun - Super fast JavaScript runtime and package manager
- Clone the repository:
git clone https://github.com/ecarry/nextjs-template
cd nextjs-template
- Install dependencies:
bun install
- Set up your environment variables:
cp .env.example .env.local
- Start the development server:
bun run dev
Visit http://localhost:3000
to see your application.
better-nextjs/
βββ src/
β βββ app/
β β βββ (auth)/
β β βββ (home)/
β β βββ api/
β βββ components/
β β βββ ui/
β βββ db/
β β βββ drizzle.ts
β β βββ schema.ts
β βββ lib/
β β βββ utils.ts
β βββ modules/
β β βββ auth/
β β βββ posts/
β βββ trpc/
β βββ routers/
βββ package.json
βββ tsconfig.json
βββ next.config.ts
βββ drizzle.config.ts
βββ postcss.config.mjs
βββ README.md
- Framework: Next.js 15
- API: tRPC
- Package Manager: Bun
- Styling: Tailwind CSS
- UI Components: shadcn/ui
- Database ORM: Drizzle
- Authentication: Better Auth
- Deployment: Vercel (recommended)
Run migrations:
bun drizzle-kit push
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.
If you find this template helpful, please give it a βοΈ on GitHub!