Registry / devops / create-batman

create-batman

JSON →
library1.1.0jsnpmunverified

Fullstack starter generator for React + Vite + Express + MySQL with normal auth and role-based auth templates. Current stable version is 1.1.0. It generates a complete project structure including login/signup, dashboards, and user management. Differentiators: student-friendly CLI prompts for auth type, database style (raw MySQL or Sequelize), and theme color; supports both normal and role-based authorization out of the box. Released as a simple CLI tool, no complex configuration required.

npm install create-batman
INSTALL
IMPORT
SIG · CREATE-BATMAN
C
create-batman
devopsjavascriptv1.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

create-batman
npx create-batman my-app
npm install create-batman --global
Use npx to avoid global installation conflicts or stale versions.
CLI prompts
Answer CLI prompts for auth, database, ports, theme, and install.
Pass all options via flags (not supported)
The CLI is fully interactive; no command-line flags are available for options.
Generated project
cd my-app && npm run dev (or start backend/frontend separately)
Running create-batman inside an existing project folder
The generator creates a new directory; do not run it in an existing project.

Creates a new fullstack project using create-batman CLI, then starts both backend and frontend servers.

# Create a new project npx create-batman my-app # Example answers: # Auth setup: normal auth # Database name: myapp_db # Backend port: 5000 # Frontend port: 3000 # Database style: Sequelize # Theme color: #3498db # Install dependencies: Y cd my-app # Start backend (in one terminal) npm run server # Start frontend (in another terminal) npm run client
Debug
Known issues
gotchaThe CLI does not validate database existence; you must create the MySQL database manually before running the app.
fix
Create the MySQL database with the name you provided before starting the backend.
affects: >=1.0.0
breakingIn version 1.1.0, the role-based auth template was added and restructured; projects generated with earlier versions may not be compatible with the new template structure.
fix
Generate a new project with version 1.1.0 or later to use role-based auth.
affects: <=1.0.0
deprecatedRaw MySQL template is preserved but considered legacy; future versions may remove it in favor of Sequelize only.
fix
Use the Sequelize option for both normal and role-based auth.
affects: >=1.1.0
Errors
Common errors & fixes
Error: Cannot find module '@create-batman/templates'
Running create-batman from a globally installed outdated version that doesn't include templates.
fix
Use npx create-batman@latest my-app
ECONNREFUSED :3306 when starting backend
MySQL server is not running or the database doesn't exist.
fix
Start MySQL server and create the database specified during setup.
Error: listen EADDRINUSE :5000
The specified backend port is already in use.
fix
Choose a different port during setup or kill the process using that port.
Upgrade
Version history
1.1.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
create-batman — npm install create-batman · libregistry