create-org-studio 1.0.0 → 1.0.1
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.
- package/index.js +9 -5
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -91,15 +91,19 @@ ${bold('GitHub:')} https://github.com/ToomeSauce/org-studio
|
|
|
91
91
|
console.log(`${cyan('→')} Initializing git repository...`);
|
|
92
92
|
execSync('git init', { cwd: targetDir, stdio: 'ignore' });
|
|
93
93
|
|
|
94
|
-
// Generate API key
|
|
94
|
+
// Generate API key (commented out by default — auth disabled for easy first run)
|
|
95
95
|
const apiKey = crypto.randomBytes(16).toString('hex');
|
|
96
96
|
|
|
97
97
|
// Create .env.local
|
|
98
|
-
console.log(`${cyan('→')} Creating .env.local
|
|
98
|
+
console.log(`${cyan('→')} Creating .env.local...`);
|
|
99
99
|
const envContent = `# Org Studio Configuration
|
|
100
100
|
|
|
101
|
-
# API key for store mutations (
|
|
102
|
-
|
|
101
|
+
# API key for store mutations (uncomment to enable auth)
|
|
102
|
+
# When enabled, browser access requires login and API calls need Bearer token.
|
|
103
|
+
# To create your first user after enabling: curl -s http://localhost:4501/api/auth/users \\
|
|
104
|
+
# -X POST -H "Content-Type: application/json" -H "Authorization: Bearer <key>" \\
|
|
105
|
+
# -d '{"username":"admin","password":"your-password"}'
|
|
106
|
+
# ORG_STUDIO_API_KEY=${apiKey}
|
|
103
107
|
|
|
104
108
|
# PostgreSQL (optional — uses local file storage by default)
|
|
105
109
|
# DATABASE_URL=postgresql://user:pass@host:5432/org_studio_db?sslmode=require
|
|
@@ -143,7 +147,7 @@ ORG_STUDIO_API_KEY=${apiKey}
|
|
|
143
147
|
console.log(` ${cyan('cd')} ${dirName}`);
|
|
144
148
|
console.log(` ${cyan('npm start')} ${dim('→ http://localhost:4501')}`);
|
|
145
149
|
console.log('');
|
|
146
|
-
console.log(` ${dim('
|
|
150
|
+
console.log(` ${dim('Auth:')} Disabled by default (open access). Enable in .env.local.`);
|
|
147
151
|
console.log(` ${dim('Docs:')} https://orgstudio.dev`);
|
|
148
152
|
console.log(` ${dim('GitHub:')} https://github.com/ToomeSauce/org-studio`);
|
|
149
153
|
console.log('');
|