next-scaffoldkit
v1.1.0
Published
CLI tool to scaffold Next.js applications with authentication, database integration, and essential features pre-configured
Maintainers
Readme
🚀 ScaffoldKit
ScaffoldKit is a powerful CLI tool that instantly scaffolds a production-ready Next.js application with authentication, database integration, and essential features pre-configured.
✨ Features
- 🔐 Built-in authentication with NextAuth.js
- 📊 Prisma ORM integration
- 🎨 TailwindCSS styling
- 📱 Responsive authentication pages
- 🔒 Password hashing with bcrypt
- 🚦 TypeScript support
- 📁 App Router architecture
- ⚡ Ready-to-use API routes
🛠️ Quick Start
npx next-scaffoldkit generate my-app
cd my-appAdd your PostgreSQL database URL to .env:
DATABASE_URL="postgresql://user:password@localhost:5432/dbname"NEXTAUTH_SECRET="your-secret-key-here"Then run:
npx prisma generate
npx prisma db push
npm run devYour application will be running at http://localhost:3000 🎉
📦 What's Included
Authentication Pages
- Login (/login)
- Register (/register)
- Protected routes
Database Setup
- Prisma configuration
- User model
- Migration setup
API Routes
- Authentication endpoints
- User management
- Protected API routes
Components
- Authentication forms
- Loading states
- Error handling
🔧 Environment Variables
Create a .env file with these variables:
DATABASE_URL=""
NEXTAUTH_SECRET="your-secret-key-here"
NEXTAUTH_URL="http://localhost:3000"📚 Tech Stack
📁 Project Structure
my-app/
├── src/
│ ├── app/
│ │ ├── api/
│ │ ├── login/
│ │ └── register/
│ ├── components/
│ │ └── auth/
│ └── utils/
├── prisma/
│ └── schema.prisma
└── .env🔒 Security
- Passwords are hashed using bcrypt
- JWT-based authentication
- Protected API routes
- Secure session handling
📝 License
This project is licensed under the MIT License - see the LICENSE file for details.
🙏 Acknowledgments
📫 Support
For support, email [email protected] or open an issue in this repository.
Made with ❤️ by Hayden Wadsworth
