1.0.9 • Published 8 months ago

next-scaffoldkit v1.0.9

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

šŸš€ 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

1.0.9

8 months ago

1.0.8

8 months ago

1.0.7

8 months ago

1.0.6

8 months ago

1.0.5

8 months ago

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago