1.0.9 ⢠Published 8 months ago
next-scaffoldkit v1.0.9
š 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-app
Add 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 dev
Your 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 info@haydendoesdev.com or open an issue in this repository.
Made with ā¤ļø by Hayden Wadsworth