Skip to content

enfyra/create

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@enfyra/create

Create a complete Enfyra workspace with one command:

npx @enfyra/create my-enfyra

The generated project contains:

  • app/ - Enfyra Nuxt admin app
  • server/ - Enfyra server
  • Root scripts for running both together
  • app/.env connected to http://localhost:1105
  • server/.env with PORT=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 dev

Run one side only:

<package-manager> run dev:server
<package-manager> run dev:app

The 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

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors