clean-auth
v1.0.11
Published
A modern full-stack authentication project CLI built with clean architecture, TypeScript, Firebase, and MongoDB. Instantly scaffold scalable auth systems with role-based access and OAuth support.
Maintainers
Readme
Clean Auth CLI
CLI tool for scaffolding full-stack authentication projects with clean architecture.
Documentation
https://clean-auth-template.vercel.app
GitHub
https://github.com/sinanptm/clean-auth-template
Installation
npm install -g clean-authOr use with npx:
npx clean-auth init my-projectCommands
init - Initialize Project
Create a new full-stack authentication project with clean architecture.
clean-auth init <project-name> [options]Options:
-i, --install- Automatically install dependencies after project creation
Examples:
clean-auth init my-auth-project
clean-auth init my-auth-project --installconfig - Configure Authentication
Set up environment variables and authentication configuration.
clean-auth config [options]Options:
-s, --skip- Skip interactive prompts and use default values
Examples:
clean-auth config
clean-auth config --skipclean - Clean Project Structure
Remove unnecessary parts of your project structure to customize it for your needs.
clean-auth clean [options]Options:
-s, --server- Remove entire server directory and update root configurations-w, --web- Remove entire web directory and update root configurations-o, --opensource- Remove open source files (LICENSE, CONTRIBUTING.md, README.md)
Examples:
clean-auth clean --server
clean-auth clean --web --opensourcehelp - Show All Commands
Display a list of all available commands.
clean-auth helpExamples:
clean-auth helpDevelopment
After project creation:
cd my-auth-project
# Configure environment variables with prompts
clean-auth config
# Start development servers
pnpm devThis starts:
- Frontend: http://localhost:3000
- Backend: http://localhost:8000
Prerequisites
- Node.js 18+
- MongoDB (local or Atlas)
- Firebase project with Authentication enabled
License
MIT © sinanptm
