CLI tool for scaffolding full-stack authentication projects with clean architecture.
https://clean-auth-template.vercel.app
https://github.com/sinanptm/clean-auth-template
npm install -g clean-auth
Or use with npx:
npx clean-auth init my-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 --install
Set up environment variables and authentication configuration.
clean-auth auth-config [options]
Options:
-
-s, --skip
- Skip interactive prompts and use default values
Examples:
clean-auth auth-config
clean-auth auth-config --skip
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 --opensource
Display a list of all available commands.
clean-auth help
Examples:
clean-auth --help
clean-auth init --help
After project creation:
cd my-auth-project
# Configure environment variables with prompts
clean-auth auth-config
# Start development servers
pnpm dev
This starts:
- Frontend: http://localhost:3000
- Backend: http://localhost:8000
- Node.js 18+
- MongoDB (local or Atlas)
- Firebase project with Authentication enabled
MIT © sinanptm