https://github.com/ecarry/better-next.js
A modern, feature-rich Next.js template that helps you kickstart your project with the best tools and practices in the React ecosystem.
https://github.com/ecarry/better-next.js
betterauth drizzle-orm nextjs15 shadcn-ui taiwindcss trpc
Last synced: 6 months ago
JSON representation
A modern, feature-rich Next.js template that helps you kickstart your project with the best tools and practices in the React ecosystem.
- Host: GitHub
- URL: https://github.com/ecarry/better-next.js
- Owner: ECarry
- License: mit
- Created: 2024-11-15T16:31:39.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-04-12T15:58:24.000Z (6 months ago)
- Last Synced: 2025-04-23T18:10:02.127Z (6 months ago)
- Topics: betterauth, drizzle-orm, nextjs15, shadcn-ui, taiwindcss, trpc
- Language: TypeScript
- Homepage: https://better-next-js.vercel.app/
- Size: 1.81 MB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Next.js Modern Stack Template 🚀
A modern, feature-rich Next.js template that helps you kickstart your project with the best tools and practices in the React ecosystem.
## ✨ Features
- ⚡️ **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## 🚀 Getting Started
1. Clone the repository:
```bash
git clone https://github.com/ecarry/nextjs-template
cd nextjs-template
```2. Install dependencies:
```bash
bun install
```3. Set up your environment variables:
```bash
cp .env.example .env.local
```4. Start the development server:
```bash
bun run dev
```Visit `http://localhost:3000` to see your application.
## 📚 Project Structure
```
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
```## 🛠️ Technologies
- **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)## 🔧 Configuration
### Database Setup
Run migrations:
```bash
bunx drizzle-kit push
```## 📝 License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
## 🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
## 💫 Support
If you find this template helpful, please give it a ⭐️ on GitHub!