clonifyx
v3.4.11
Published
Scaffold a fullstack MERN auth project in seconds
Maintainers
Readme
Clonifyx — Fullstack Auth Scaffold
Scaffold a complete MERN authentication project in seconds.
Usage
# recommended — download & run without installing
pnpm dlx clonifyx my-app
# or using npx
npx clonifyx my-app
# or install globally
pnpm add -g clonifyx
clonifyx my-appThe CLI will prompt you for:
- Auth type (JWT or Session)
- MongoDB database name
- Secret key (JWT_SECRET or SESSION_SECRET)
What you get
- Frontend: React + React Router + React Hook Form + Zod + Axios + Tailwind CSS v4
- Backend: Node.js + Express + Mongoose
- Auth: JWT or express-session (your choice)
- Recovery: Seed-based password reset (no email required)
- Reports: Built-in daily, monthly, and total report endpoints + DataTable UI
Generated project
my-app/
├── frontend/ # React SPA (Vite)
│ ├── src/
│ │ ├── api/ # Axios API layer
│ │ ├── components/ # UI components
│ │ ├── context/ # AuthContext
│ │ ├── pages/ # Login, Register, Dashboard, Reports
│ │ ├── routes/ # ProtectedRoute
│ │ └── schemas/ # Zod validation
│ └── ...
└── backend/ # Express API
├── src/
│ ├── config/ # DB connection
│ ├── controllers/ # Route handlers
│ ├── middleware/ # Auth middleware
│ ├── models/ # Mongoose schemas
│ ├── routes/ # API routes
│ └── utils/ # JWT token (JWT only)
└── .envStart the project
cd my-app/backend && pnpm dev
cd my-app/frontend && pnpm devRequirements
- pnpm
- Node.js 18+
- MongoDB running locally
