@enfyra/create-app 0.1.31 → 0.1.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +19 -9
  2. package/index.js +2 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -19,20 +19,17 @@ npx @enfyra/create-server my-backend
19
19
 
20
20
  ```bash
21
21
  # Using npx (recommended)
22
- npx @enfyra/create-app my-app
22
+ npx @enfyra/create-app
23
23
 
24
24
  # Using yarn
25
- yarn create @enfyra/app my-app
25
+ yarn create @enfyra/app
26
26
 
27
27
  # Using pnpm
28
- pnpm create @enfyra/app my-app
29
-
30
- # Using bun
31
- bun create @enfyra/app my-app
28
+ pnpm create @enfyra/app
32
29
 
33
30
  # Or install globally
34
31
  npm install -g @enfyra/create-app
35
- create-app my-app
32
+ create-app
36
33
  ```
37
34
 
38
35
  ## Demo
@@ -45,6 +42,7 @@ create-app my-app
45
42
  ✅ **Enfyra SDK** pre-configured
46
43
  ✅ **TypeScript** support
47
44
  ✅ **Tailwind CSS** styling
45
+ ✅ **Database support** - MongoDB, PostgreSQL, MySQL
48
46
  ✅ **Environment** variables setup
49
47
  ✅ **Dependencies** installed automatically
50
48
 
@@ -57,19 +55,31 @@ create-app my-app
57
55
 
58
56
  ### Create a new project
59
57
  ```bash
60
- npx @enfyra/create-app my-project
58
+ npx @enfyra/create-app
59
+ # Optional: specify a name
60
+ npx @enfyra/create-app my-enfyra-app
61
61
  ```
62
62
 
63
63
  ### Interactive setup
64
64
  The CLI will guide you through:
65
- - Package manager selection
65
+ - Package manager selection (npm, yarn, pnpm)
66
+ - Database type selection (MongoDB, PostgreSQL, MySQL)
66
67
  - API endpoint configuration
67
68
  - Development port setup
68
69
 
70
+ ### Database Support
71
+ Choose from multiple database options during setup:
72
+ - 🍃 **MongoDB** - NoSQL document database
73
+ - 🐘 **PostgreSQL** - Powerful relational database
74
+ - 🐬 **MySQL** - Popular relational database
75
+
76
+ The selected database type will be automatically configured in your `.env` file.
77
+
69
78
  ### Environment Variables
70
79
  After project creation, you can modify the `.env` file at any time to configure:
71
80
  - API endpoints
72
81
  - Port
82
+ - Database type
73
83
 
74
84
  The `.env` file is automatically created and can be customized for your specific needs.
75
85
 
package/index.js CHANGED
@@ -43,7 +43,7 @@ async function main() {
43
43
  });
44
44
  console.log('');
45
45
 
46
- // Get project name from command line or prompt
46
+ // Get project name from command line or prompt with default
47
47
  let projectName = program.args[0];
48
48
 
49
49
  if (!projectName) {
@@ -52,6 +52,7 @@ async function main() {
52
52
  type: 'input',
53
53
  name: 'name',
54
54
  message: 'Project name:',
55
+ default: 'my-enfyra-app',
55
56
  validate: (input) => {
56
57
  if (!input || input.trim().length === 0) {
57
58
  return 'Project name is required';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enfyra/create-app",
3
- "version": "0.1.31",
3
+ "version": "0.1.33",
4
4
  "description": "Create Enfyra frontend applications with ease",
5
5
  "main": "index.js",
6
6
  "bin": {