@enfyra/create
v0.1.5
Published
Create a complete Enfyra app with frontend and server workspaces
Maintainers
Readme
@enfyra/create
Create a complete Enfyra workspace with one command:
npx @enfyra/create my-enfyraThe generated project contains:
app/- Enfyra Nuxt admin appserver/- Enfyra server- Root scripts for running both together
app/.envconnected tohttp://localhost:1105server/.envwithPORT=1105
app/ and server/ are installed as separate applications. Their dependencies and lockfiles stay inside each folder; the root folder only coordinates scripts.
The CLI prompts for:
- Package manager: npm, yarn, or pnpm
- Database type and URI
- Redis URI
- Default admin account
It validates the database and Redis connections before scaffolding. If validation fails, you can re-enter the connection details, continue anyway, or exit setup.
Usage
cd my-enfyra
<package-manager> run devRun one side only:
<package-manager> run dev:server
<package-manager> run dev:appThe server port is fixed to 1105. During setup, the CLI checks the port first and asks before killing any process that is already using it.
The Nuxt app is configured with PORT=3000; Nuxt may pick another port at dev time if 3000 is already busy.
Requirements
- Node.js 24.x
- npm, yarn, or pnpm
- A running MySQL, PostgreSQL, or MongoDB instance
- A running Redis instance
