create-reats-app
v1.0.1
Published
Scaffold full-stack project templates (backend + frontend) in the current directory
Maintainers
Readme
create-reats-app
Create full-stack project templates (backend + frontend) directly in your current folder.
This CLI is inspired by create-react-app style workflows but designed for full projects.
Features
- Creates projects in
process.cwd()(your current directory) - Copies full template content (for example
backend/andfrontend/) - Supports multiple templates
- Works with both
npxand global install - No external runtime dependencies
Usage
Use with npx (recommended)
npx create-reats-appList templates
npx create-reats-app --listCreate directly from a specific template
npx create-reats-app --template SIMS-NEPHelp
npx create-reats-app --helpLocal development and testing
From this package root:
npm linkThen in any empty folder:
create-reats-appOr select a template directly:
create-reats-app --template SIMS-NEPTemplate structure
Put each project template as a folder inside templates/.
Example:
templates/
SIMS-NEP/
backend/
frontend/
ANOTHER-PROJECT/
backend/
frontend/Whatever exists inside a template folder is copied into the current directory.
Add a new project template
- Create a new folder inside
templates/(for exampletemplates/MY-NEW-PROJECT). - Put a complete project structure inside it.
- Publish a new package version.
- Users can then choose it from the interactive menu or
--template.
Publish to npm
- Update
versioninpackage.json. - Log in:
npm login- Publish:
npm publish --access publicAfter publish, users can run:
npx create-reats-appNotes
- The CLI does not generate inside
node_modules. - It creates files directly in the folder where the command is executed.
- If
backendorfrontendalready exists, the CLI stops to avoid overwriting.
