create-sip 1.3.0 → 1.3.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/manager.js +15 -0
- package/package.json +1 -1
package/manager.js
CHANGED
|
@@ -73,6 +73,21 @@ const genExpressApi = async (target) => {
|
|
|
73
73
|
copyDir(`${dir}/expressapi`, target);
|
|
74
74
|
updatePackageName(`${target}/package.json`, target);
|
|
75
75
|
|
|
76
|
+
const content = `
|
|
77
|
+
APP_PORT=8000
|
|
78
|
+
APP_KEY=
|
|
79
|
+
APP_LOG=console.log
|
|
80
|
+
|
|
81
|
+
DB_DIALECT=sqlite
|
|
82
|
+
DB_HOST=127.0.0.1
|
|
83
|
+
DB_NAME=
|
|
84
|
+
DB_USER=
|
|
85
|
+
DB_PASS=
|
|
86
|
+
DB_PATH=database.sqlite
|
|
87
|
+
`
|
|
88
|
+
|
|
89
|
+
await fse.writeFile(`${target}/.env`, content, 'utf8');
|
|
90
|
+
|
|
76
91
|
console.log('ExpressJS REST API skeleton created');
|
|
77
92
|
console.log('Read docs/user_doc.md');
|
|
78
93
|
console.log('Run next commands:');
|