A modern, production-ready template for building full-stack applications with Next.js, featuring built-in authentication, database integration, and a clean, minimal UI.
- 🔒 Authentication ready with NextAuth.js
- 📦 Database integration with Prisma and PostgreSQL
- 🎨 Clean and minimal UI with Tailwind CSS
- 🚀 Built with Next.js 14 App Router
- 🔑 OAuth support for Google and GitHub
- 🎯 TypeScript for type safety
- 🎨 Shadcn UI components
- 📱 Fully responsive design
- Clone the repository
git clone https://github.com/yesabhishek/nextjs-auth-template.git
cd nextjs-auth-template
- Set up environment variables
# Copy the example env file
cp .env.example .env
# Add your environment variables to .env
DATABASE_URL="postgresql://..."
GITHUB_ID="your-github-id"
GITHUB_SECRET="your-github-secret"
GOOGLE_ID="your-google-id"
GOOGLE_SECRET="your-google-secret"
- Install dependencies
npm install
- Set up the database
# Run database migrations
npx prisma migrate dev
- Start the development server
npm run dev
Visit http://localhost:3000
to see your application running.
This template comes with several key integrations to help you build faster:
- PostgreSQL: Production-ready database setup
- Prisma: Modern database ORM for TypeScript
- Google OAuth: Sign in with Google accounts
- GitHub OAuth: Sign in with GitHub accounts
- Auth.js: Flexible authentication for Next.js
├── app/ # Next.js App Router pages
├── components/ # Reusable UI components
├── lib/ # Utility functions and configurations
├── prisma/ # Database schema and migrations
├── public/ # Static assets
└── styles/ # Global styles and Tailwind config
Current development status and upcoming features:
✅ Authentication Module ✅ Database Integration ✅ Responsive Layouts 🚧 Email Integration 🚧 Docker Support 🚧 Notification System
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
If you find this template helpful, consider:
- Giving it a ⭐ on GitHub
- Sharing it with others
- Contributing to its improvement
- Built with Next.js
- UI components from shadcn/ui
- Authentication by Auth.js
- Styling with Tailwind CSS
Made with ❤️ by Abhishek