@keshavsoft/kschema-cli 1.13.2 → 1.13.3
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/bin/v13/commands/express/steps/locateSource.js +1 -1
- package/bin/v13/commands/express/template/v6/.env +9 -0
- package/bin/v13/commands/express/template/v6/.env.local +7 -0
- package/bin/v13/commands/express/template/v6/.vscode/launch.json +12 -0
- package/bin/v13/commands/express/template/v6/Config/Schemas/BillsTable.json +165 -0
- package/bin/v13/commands/express/template/v6/Config/Schemas/ItemsTable.json +200 -0
- package/bin/v13/commands/express/template/v6/Config/Schemas/LedgerNames.json +60 -0
- package/bin/v13/commands/express/template/v6/Config/Schemas/StockItems.json +50 -0
- package/bin/v13/commands/express/template/v6/Config/api.json +8 -0
- package/bin/v13/commands/express/template/v6/Config/schema.json +8 -0
- package/bin/v13/commands/express/template/v6/Config/ui.json +8 -0
- package/bin/v13/commands/express/template/v6/Public/index.html +129 -0
- package/bin/v13/commands/express/template/v6/app.js +19 -0
- package/bin/v13/commands/express/template/v6/config.json +4 -0
- package/bin/v13/commands/express/template/v6/configLoader.js +6 -0
- package/bin/v13/commands/express/template/v6/package-lock.json +834 -0
- package/bin/v13/commands/express/template/v6/package.json +21 -0
- package/bin/v13/commands/express/template/v6/port.js +6 -0
- package/bin/v13/commands/express/template/v6/routes.js +5 -0
- package/bin/v13/commands/express/template/v6/server.js +13 -0
- package/package.json +1 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "KeshavSoft",
|
|
3
|
+
"version": "1.17.12",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "app.js",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
9
|
+
"start": "node --env-file=.env app.js"
|
|
10
|
+
},
|
|
11
|
+
"author": "",
|
|
12
|
+
"license": "ISC",
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"@keshavsoft/kschema": "^1.17.12",
|
|
15
|
+
"body-parser": "^2.2.0",
|
|
16
|
+
"express": "^5.1.0"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@keshavsoft/kschema-api-gen": "^1.6.3"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import http from "http";
|
|
2
|
+
import normalizePort from "./port.js";
|
|
3
|
+
|
|
4
|
+
export default function startServer(app) {
|
|
5
|
+
const port = normalizePort(process.env.PORT || 3000);
|
|
6
|
+
const server = http.createServer(app);
|
|
7
|
+
|
|
8
|
+
server.listen(port, () => {
|
|
9
|
+
console.log(`http://localhost:${port}`);
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
return { port }; // 👈 add this
|
|
13
|
+
};
|