Skip to content

loudrifle/create-template-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Create-Template-CLI 🚀

A modern, professional TUI (Terminal User Interface) to bootstrap Next.js projects with a pre-configured stack. Built to provide a "ready-to-go" developer experience with industry-standard libraries.

🛠 Features

  • Framework: Next.js (Latest) with App Router & TypeScript.
  • Styling: Tailwind CSS and Shadcn/UI integration.
  • Linting & Formatting: Choice between Biome.js (Ultra-fast) or ESLint + Prettier.
  • Database (ORM): Automatic configuration for Drizzle ORM or Prisma.
  • Tools Injection:
    • TanStack Query: Pre-configured QueryClient and Providers.tsx.
    • NextAuth.js: Initial configuration and session provider.
    • Zustand: Example persistent store.
    • Zod: Validation library ready to use.
  • Interactive TUI: Beautiful prompts using @clack/prompts.
  • Live Feedback: Real-time streaming of create-next-app progress inside the TUI spinner.
  • Clean Architecture: Automatically generates a professional directory structure (hooks, services, types, lib, etc.).

🚀 Getting Started

Prerequisites

  • Node.js (Latest LTS recommended)
  • npm

Installation & Development

  1. Clone the repository:

    git clone https://github.com/loudrifle/create-template-cli.git
    cd create-template-cli
  2. Install dependencies:

    npm install
  3. Run in development mode:

    npm run dev
  4. Build & Test:

    npm run build
    npm start
  5. Global Link:

    npm link
    create-template-cli

📂 Generated Structure (Example)

src/
├── app/
│   └── layout.tsx (Modified with Providers)
├── components/
│   ├── common/
│   ├── providers/
│   └── ui/
├── hooks/
├── lib/
│   ├── db/ (Drizzle) or prisma.ts (Prisma)
│   ├── auth.ts
│   └── query-client.ts
├── services/
├── store/
└── types/

📄 License

ISC

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors