baraqex 1.0.66 → 1.0.68
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/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/templates/basic-app/package-lock.json +306 -7
- package/templates/basic-app/package.json +1 -1
- package/templates/basic-app/src/main.tsx +1 -1
- package/templates/basic-app/vite.config.ts +3 -2
- package/templates/fullstack-template/.env.example +16 -29
- package/templates/fullstack-template/README.md +9 -45
- package/templates/fullstack-template/package-lock.json +1504 -6211
- package/templates/fullstack-template/package.json +17 -47
- package/templates/fullstack-template/server.js +52 -25
- package/templates/fullstack-template/src/App.tsx +178 -1
- package/templates/fullstack-template/src/api/hello.js +19 -0
- package/templates/fullstack-template/src/api/users.js +39 -0
- package/templates/fullstack-template/src/pages/index.tsx +194 -0
- package/templates/fullstack-template/src/server.ts +2 -41
- package/templates/fullstack-template/tsconfig.json +30 -0
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"name": "finall",
|
|
9
9
|
"version": "0.0.0",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"baraqex": "^1.0.
|
|
11
|
+
"baraqex": "^1.0.65",
|
|
12
12
|
"frontend-hamroun": "^1.2.35",
|
|
13
13
|
"fs": "^0.0.1-security",
|
|
14
14
|
"path": "^0.12.7"
|
|
@@ -1345,19 +1345,31 @@
|
|
|
1345
1345
|
"license": "MIT"
|
|
1346
1346
|
},
|
|
1347
1347
|
"node_modules/baraqex": {
|
|
1348
|
-
"version": "1.0.
|
|
1349
|
-
"resolved": "https://registry.npmjs.org/baraqex/-/baraqex-1.0.
|
|
1350
|
-
"integrity": "sha512-
|
|
1348
|
+
"version": "1.0.66",
|
|
1349
|
+
"resolved": "https://registry.npmjs.org/baraqex/-/baraqex-1.0.66.tgz",
|
|
1350
|
+
"integrity": "sha512-hB/u6UjVqJMsYstKeLuRHxSPZQ42LiTnIgvu+2f5HqLFlv36BzwUG1Gk1oYmsCuGcxmHdqRkofSR+n06Z0BugA==",
|
|
1351
1351
|
"license": "MIT",
|
|
1352
1352
|
"dependencies": {
|
|
1353
|
-
"
|
|
1353
|
+
"chokidar": "^4.0.3",
|
|
1354
|
+
"frontend-hamroun": "^1.2.35",
|
|
1355
|
+
"open": "^10.1.2",
|
|
1356
|
+
"ws": "^8.18.2"
|
|
1354
1357
|
},
|
|
1355
1358
|
"bin": {
|
|
1356
1359
|
"baraqex": "bin/baraqex.js"
|
|
1357
1360
|
},
|
|
1361
|
+
"optionalDependencies": {
|
|
1362
|
+
"bcryptjs": "^2.4.3",
|
|
1363
|
+
"cors": "^2.8.5",
|
|
1364
|
+
"express": "^4.18.0",
|
|
1365
|
+
"jsonwebtoken": "^9.0.0",
|
|
1366
|
+
"mongodb": "^6.0.0",
|
|
1367
|
+
"mysql2": "^3.6.0",
|
|
1368
|
+
"pg": "^8.11.0"
|
|
1369
|
+
},
|
|
1358
1370
|
"peerDependencies": {
|
|
1359
|
-
"cors": "
|
|
1360
|
-
"express": "
|
|
1371
|
+
"cors": "^2.8.5",
|
|
1372
|
+
"express": "^4.18.0"
|
|
1361
1373
|
},
|
|
1362
1374
|
"peerDependenciesMeta": {
|
|
1363
1375
|
"bcryptjs": {
|
|
@@ -1383,6 +1395,139 @@
|
|
|
1383
1395
|
}
|
|
1384
1396
|
}
|
|
1385
1397
|
},
|
|
1398
|
+
"node_modules/baraqex/node_modules/@types/whatwg-url": {
|
|
1399
|
+
"version": "11.0.5",
|
|
1400
|
+
"resolved": "https://registry.npmjs.org/@types/whatwg-url/-/whatwg-url-11.0.5.tgz",
|
|
1401
|
+
"integrity": "sha512-coYR071JRaHa+xoEvvYqvnIHaVqaYrLPbsufM9BF63HkwI5Lgmy2QR8Q5K/lYDYo5AK82wOvSOS0UsLTpTG7uQ==",
|
|
1402
|
+
"license": "MIT",
|
|
1403
|
+
"optional": true,
|
|
1404
|
+
"dependencies": {
|
|
1405
|
+
"@types/webidl-conversions": "*"
|
|
1406
|
+
}
|
|
1407
|
+
},
|
|
1408
|
+
"node_modules/baraqex/node_modules/bson": {
|
|
1409
|
+
"version": "6.10.4",
|
|
1410
|
+
"resolved": "https://registry.npmjs.org/bson/-/bson-6.10.4.tgz",
|
|
1411
|
+
"integrity": "sha512-WIsKqkSC0ABoBJuT1LEX+2HEvNmNKKgnTAyd0fL8qzK4SH2i9NXg+t08YtdZp/V9IZ33cxe3iV4yM0qg8lMQng==",
|
|
1412
|
+
"license": "Apache-2.0",
|
|
1413
|
+
"optional": true,
|
|
1414
|
+
"engines": {
|
|
1415
|
+
"node": ">=16.20.1"
|
|
1416
|
+
}
|
|
1417
|
+
},
|
|
1418
|
+
"node_modules/baraqex/node_modules/chokidar": {
|
|
1419
|
+
"version": "4.0.3",
|
|
1420
|
+
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz",
|
|
1421
|
+
"integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==",
|
|
1422
|
+
"license": "MIT",
|
|
1423
|
+
"dependencies": {
|
|
1424
|
+
"readdirp": "^4.0.1"
|
|
1425
|
+
},
|
|
1426
|
+
"engines": {
|
|
1427
|
+
"node": ">= 14.16.0"
|
|
1428
|
+
},
|
|
1429
|
+
"funding": {
|
|
1430
|
+
"url": "https://paulmillr.com/funding/"
|
|
1431
|
+
}
|
|
1432
|
+
},
|
|
1433
|
+
"node_modules/baraqex/node_modules/mongodb": {
|
|
1434
|
+
"version": "6.17.0",
|
|
1435
|
+
"resolved": "https://registry.npmjs.org/mongodb/-/mongodb-6.17.0.tgz",
|
|
1436
|
+
"integrity": "sha512-neerUzg/8U26cgruLysKEjJvoNSXhyID3RvzvdcpsIi2COYM3FS3o9nlH7fxFtefTb942dX3W9i37oPfCVj4wA==",
|
|
1437
|
+
"license": "Apache-2.0",
|
|
1438
|
+
"optional": true,
|
|
1439
|
+
"dependencies": {
|
|
1440
|
+
"@mongodb-js/saslprep": "^1.1.9",
|
|
1441
|
+
"bson": "^6.10.4",
|
|
1442
|
+
"mongodb-connection-string-url": "^3.0.0"
|
|
1443
|
+
},
|
|
1444
|
+
"engines": {
|
|
1445
|
+
"node": ">=16.20.1"
|
|
1446
|
+
},
|
|
1447
|
+
"peerDependencies": {
|
|
1448
|
+
"@aws-sdk/credential-providers": "^3.188.0",
|
|
1449
|
+
"@mongodb-js/zstd": "^1.1.0 || ^2.0.0",
|
|
1450
|
+
"gcp-metadata": "^5.2.0",
|
|
1451
|
+
"kerberos": "^2.0.1",
|
|
1452
|
+
"mongodb-client-encryption": ">=6.0.0 <7",
|
|
1453
|
+
"snappy": "^7.2.2",
|
|
1454
|
+
"socks": "^2.7.1"
|
|
1455
|
+
},
|
|
1456
|
+
"peerDependenciesMeta": {
|
|
1457
|
+
"@aws-sdk/credential-providers": {
|
|
1458
|
+
"optional": true
|
|
1459
|
+
},
|
|
1460
|
+
"@mongodb-js/zstd": {
|
|
1461
|
+
"optional": true
|
|
1462
|
+
},
|
|
1463
|
+
"gcp-metadata": {
|
|
1464
|
+
"optional": true
|
|
1465
|
+
},
|
|
1466
|
+
"kerberos": {
|
|
1467
|
+
"optional": true
|
|
1468
|
+
},
|
|
1469
|
+
"mongodb-client-encryption": {
|
|
1470
|
+
"optional": true
|
|
1471
|
+
},
|
|
1472
|
+
"snappy": {
|
|
1473
|
+
"optional": true
|
|
1474
|
+
},
|
|
1475
|
+
"socks": {
|
|
1476
|
+
"optional": true
|
|
1477
|
+
}
|
|
1478
|
+
}
|
|
1479
|
+
},
|
|
1480
|
+
"node_modules/baraqex/node_modules/mongodb-connection-string-url": {
|
|
1481
|
+
"version": "3.0.2",
|
|
1482
|
+
"resolved": "https://registry.npmjs.org/mongodb-connection-string-url/-/mongodb-connection-string-url-3.0.2.tgz",
|
|
1483
|
+
"integrity": "sha512-rMO7CGo/9BFwyZABcKAWL8UJwH/Kc2x0g72uhDWzG48URRax5TCIcJ7Rc3RZqffZzO/Gwff/jyKwCU9TN8gehA==",
|
|
1484
|
+
"license": "Apache-2.0",
|
|
1485
|
+
"optional": true,
|
|
1486
|
+
"dependencies": {
|
|
1487
|
+
"@types/whatwg-url": "^11.0.2",
|
|
1488
|
+
"whatwg-url": "^14.1.0 || ^13.0.0"
|
|
1489
|
+
}
|
|
1490
|
+
},
|
|
1491
|
+
"node_modules/baraqex/node_modules/readdirp": {
|
|
1492
|
+
"version": "4.1.2",
|
|
1493
|
+
"resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz",
|
|
1494
|
+
"integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==",
|
|
1495
|
+
"license": "MIT",
|
|
1496
|
+
"engines": {
|
|
1497
|
+
"node": ">= 14.18.0"
|
|
1498
|
+
},
|
|
1499
|
+
"funding": {
|
|
1500
|
+
"type": "individual",
|
|
1501
|
+
"url": "https://paulmillr.com/funding/"
|
|
1502
|
+
}
|
|
1503
|
+
},
|
|
1504
|
+
"node_modules/baraqex/node_modules/tr46": {
|
|
1505
|
+
"version": "5.1.1",
|
|
1506
|
+
"resolved": "https://registry.npmjs.org/tr46/-/tr46-5.1.1.tgz",
|
|
1507
|
+
"integrity": "sha512-hdF5ZgjTqgAntKkklYw0R03MG2x/bSzTtkxmIRw/sTNV8YXsCJ1tfLAX23lhxhHJlEf3CRCOCGGWw3vI3GaSPw==",
|
|
1508
|
+
"license": "MIT",
|
|
1509
|
+
"optional": true,
|
|
1510
|
+
"dependencies": {
|
|
1511
|
+
"punycode": "^2.3.1"
|
|
1512
|
+
},
|
|
1513
|
+
"engines": {
|
|
1514
|
+
"node": ">=18"
|
|
1515
|
+
}
|
|
1516
|
+
},
|
|
1517
|
+
"node_modules/baraqex/node_modules/whatwg-url": {
|
|
1518
|
+
"version": "14.2.0",
|
|
1519
|
+
"resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-14.2.0.tgz",
|
|
1520
|
+
"integrity": "sha512-De72GdQZzNTUBBChsXueQUnPKDkg/5A5zp7pFDuQAj5UFoENpiACU0wlCvzpAGnTkj++ihpKwKyYewn/XNUbKw==",
|
|
1521
|
+
"license": "MIT",
|
|
1522
|
+
"optional": true,
|
|
1523
|
+
"dependencies": {
|
|
1524
|
+
"tr46": "^5.1.0",
|
|
1525
|
+
"webidl-conversions": "^7.0.0"
|
|
1526
|
+
},
|
|
1527
|
+
"engines": {
|
|
1528
|
+
"node": ">=18"
|
|
1529
|
+
}
|
|
1530
|
+
},
|
|
1386
1531
|
"node_modules/base64-js": {
|
|
1387
1532
|
"version": "1.5.1",
|
|
1388
1533
|
"resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",
|
|
@@ -1625,6 +1770,21 @@
|
|
|
1625
1770
|
"integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==",
|
|
1626
1771
|
"license": "BSD-3-Clause"
|
|
1627
1772
|
},
|
|
1773
|
+
"node_modules/bundle-name": {
|
|
1774
|
+
"version": "4.1.0",
|
|
1775
|
+
"resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-4.1.0.tgz",
|
|
1776
|
+
"integrity": "sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q==",
|
|
1777
|
+
"license": "MIT",
|
|
1778
|
+
"dependencies": {
|
|
1779
|
+
"run-applescript": "^7.0.0"
|
|
1780
|
+
},
|
|
1781
|
+
"engines": {
|
|
1782
|
+
"node": ">=18"
|
|
1783
|
+
},
|
|
1784
|
+
"funding": {
|
|
1785
|
+
"url": "https://github.com/sponsors/sindresorhus"
|
|
1786
|
+
}
|
|
1787
|
+
},
|
|
1628
1788
|
"node_modules/bytes": {
|
|
1629
1789
|
"version": "3.1.2",
|
|
1630
1790
|
"resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
|
|
@@ -2112,6 +2272,34 @@
|
|
|
2112
2272
|
"dev": true,
|
|
2113
2273
|
"license": "MIT"
|
|
2114
2274
|
},
|
|
2275
|
+
"node_modules/default-browser": {
|
|
2276
|
+
"version": "5.2.1",
|
|
2277
|
+
"resolved": "https://registry.npmjs.org/default-browser/-/default-browser-5.2.1.tgz",
|
|
2278
|
+
"integrity": "sha512-WY/3TUME0x3KPYdRRxEJJvXRHV4PyPoUsxtZa78lwItwRQRHhd2U9xOscaT/YTf8uCXIAjeJOFBVEh/7FtD8Xg==",
|
|
2279
|
+
"license": "MIT",
|
|
2280
|
+
"dependencies": {
|
|
2281
|
+
"bundle-name": "^4.1.0",
|
|
2282
|
+
"default-browser-id": "^5.0.0"
|
|
2283
|
+
},
|
|
2284
|
+
"engines": {
|
|
2285
|
+
"node": ">=18"
|
|
2286
|
+
},
|
|
2287
|
+
"funding": {
|
|
2288
|
+
"url": "https://github.com/sponsors/sindresorhus"
|
|
2289
|
+
}
|
|
2290
|
+
},
|
|
2291
|
+
"node_modules/default-browser-id": {
|
|
2292
|
+
"version": "5.0.0",
|
|
2293
|
+
"resolved": "https://registry.npmjs.org/default-browser-id/-/default-browser-id-5.0.0.tgz",
|
|
2294
|
+
"integrity": "sha512-A6p/pu/6fyBcA1TRz/GqWYPViplrftcW2gZC9q79ngNCKAeR/X3gcEdXQHl4KNXV+3wgIJ1CPkJQ3IHM6lcsyA==",
|
|
2295
|
+
"license": "MIT",
|
|
2296
|
+
"engines": {
|
|
2297
|
+
"node": ">=18"
|
|
2298
|
+
},
|
|
2299
|
+
"funding": {
|
|
2300
|
+
"url": "https://github.com/sponsors/sindresorhus"
|
|
2301
|
+
}
|
|
2302
|
+
},
|
|
2115
2303
|
"node_modules/defaults": {
|
|
2116
2304
|
"version": "1.0.4",
|
|
2117
2305
|
"resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz",
|
|
@@ -2133,6 +2321,18 @@
|
|
|
2133
2321
|
"node": ">=10"
|
|
2134
2322
|
}
|
|
2135
2323
|
},
|
|
2324
|
+
"node_modules/define-lazy-prop": {
|
|
2325
|
+
"version": "3.0.0",
|
|
2326
|
+
"resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-3.0.0.tgz",
|
|
2327
|
+
"integrity": "sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==",
|
|
2328
|
+
"license": "MIT",
|
|
2329
|
+
"engines": {
|
|
2330
|
+
"node": ">=12"
|
|
2331
|
+
},
|
|
2332
|
+
"funding": {
|
|
2333
|
+
"url": "https://github.com/sponsors/sindresorhus"
|
|
2334
|
+
}
|
|
2335
|
+
},
|
|
2136
2336
|
"node_modules/denque": {
|
|
2137
2337
|
"version": "2.1.0",
|
|
2138
2338
|
"resolved": "https://registry.npmjs.org/denque/-/denque-2.1.0.tgz",
|
|
@@ -3726,6 +3926,21 @@
|
|
|
3726
3926
|
"url": "https://github.com/sponsors/ljharb"
|
|
3727
3927
|
}
|
|
3728
3928
|
},
|
|
3929
|
+
"node_modules/is-docker": {
|
|
3930
|
+
"version": "3.0.0",
|
|
3931
|
+
"resolved": "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz",
|
|
3932
|
+
"integrity": "sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==",
|
|
3933
|
+
"license": "MIT",
|
|
3934
|
+
"bin": {
|
|
3935
|
+
"is-docker": "cli.js"
|
|
3936
|
+
},
|
|
3937
|
+
"engines": {
|
|
3938
|
+
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
|
|
3939
|
+
},
|
|
3940
|
+
"funding": {
|
|
3941
|
+
"url": "https://github.com/sponsors/sindresorhus"
|
|
3942
|
+
}
|
|
3943
|
+
},
|
|
3729
3944
|
"node_modules/is-extglob": {
|
|
3730
3945
|
"version": "2.1.1",
|
|
3731
3946
|
"resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
|
|
@@ -3758,6 +3973,24 @@
|
|
|
3758
3973
|
"node": ">=0.10.0"
|
|
3759
3974
|
}
|
|
3760
3975
|
},
|
|
3976
|
+
"node_modules/is-inside-container": {
|
|
3977
|
+
"version": "1.0.0",
|
|
3978
|
+
"resolved": "https://registry.npmjs.org/is-inside-container/-/is-inside-container-1.0.0.tgz",
|
|
3979
|
+
"integrity": "sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==",
|
|
3980
|
+
"license": "MIT",
|
|
3981
|
+
"dependencies": {
|
|
3982
|
+
"is-docker": "^3.0.0"
|
|
3983
|
+
},
|
|
3984
|
+
"bin": {
|
|
3985
|
+
"is-inside-container": "cli.js"
|
|
3986
|
+
},
|
|
3987
|
+
"engines": {
|
|
3988
|
+
"node": ">=14.16"
|
|
3989
|
+
},
|
|
3990
|
+
"funding": {
|
|
3991
|
+
"url": "https://github.com/sponsors/sindresorhus"
|
|
3992
|
+
}
|
|
3993
|
+
},
|
|
3761
3994
|
"node_modules/is-installed-globally": {
|
|
3762
3995
|
"version": "0.4.0",
|
|
3763
3996
|
"resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.4.0.tgz",
|
|
@@ -3847,6 +4080,21 @@
|
|
|
3847
4080
|
"url": "https://github.com/sponsors/sindresorhus"
|
|
3848
4081
|
}
|
|
3849
4082
|
},
|
|
4083
|
+
"node_modules/is-wsl": {
|
|
4084
|
+
"version": "3.1.0",
|
|
4085
|
+
"resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-3.1.0.tgz",
|
|
4086
|
+
"integrity": "sha512-UcVfVfaK4Sc4m7X3dUSoHoozQGBEFeDC+zVo06t98xe8CzHSZZBekNXH+tu0NalHolcJ/QAGqS46Hef7QXBIMw==",
|
|
4087
|
+
"license": "MIT",
|
|
4088
|
+
"dependencies": {
|
|
4089
|
+
"is-inside-container": "^1.0.0"
|
|
4090
|
+
},
|
|
4091
|
+
"engines": {
|
|
4092
|
+
"node": ">=16"
|
|
4093
|
+
},
|
|
4094
|
+
"funding": {
|
|
4095
|
+
"url": "https://github.com/sponsors/sindresorhus"
|
|
4096
|
+
}
|
|
4097
|
+
},
|
|
3850
4098
|
"node_modules/is-yarn-global": {
|
|
3851
4099
|
"version": "0.4.1",
|
|
3852
4100
|
"resolved": "https://registry.npmjs.org/is-yarn-global/-/is-yarn-global-0.4.1.tgz",
|
|
@@ -4606,6 +4854,24 @@
|
|
|
4606
4854
|
"url": "https://github.com/sponsors/sindresorhus"
|
|
4607
4855
|
}
|
|
4608
4856
|
},
|
|
4857
|
+
"node_modules/open": {
|
|
4858
|
+
"version": "10.1.2",
|
|
4859
|
+
"resolved": "https://registry.npmjs.org/open/-/open-10.1.2.tgz",
|
|
4860
|
+
"integrity": "sha512-cxN6aIDPz6rm8hbebcP7vrQNhvRcveZoJU72Y7vskh4oIm+BZwBECnx5nTmrlres1Qapvx27Qo1Auukpf8PKXw==",
|
|
4861
|
+
"license": "MIT",
|
|
4862
|
+
"dependencies": {
|
|
4863
|
+
"default-browser": "^5.2.1",
|
|
4864
|
+
"define-lazy-prop": "^3.0.0",
|
|
4865
|
+
"is-inside-container": "^1.0.0",
|
|
4866
|
+
"is-wsl": "^3.1.0"
|
|
4867
|
+
},
|
|
4868
|
+
"engines": {
|
|
4869
|
+
"node": ">=18"
|
|
4870
|
+
},
|
|
4871
|
+
"funding": {
|
|
4872
|
+
"url": "https://github.com/sponsors/sindresorhus"
|
|
4873
|
+
}
|
|
4874
|
+
},
|
|
4609
4875
|
"node_modules/optionator": {
|
|
4610
4876
|
"version": "0.9.4",
|
|
4611
4877
|
"resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz",
|
|
@@ -5479,6 +5745,18 @@
|
|
|
5479
5745
|
"fsevents": "~2.3.2"
|
|
5480
5746
|
}
|
|
5481
5747
|
},
|
|
5748
|
+
"node_modules/run-applescript": {
|
|
5749
|
+
"version": "7.0.0",
|
|
5750
|
+
"resolved": "https://registry.npmjs.org/run-applescript/-/run-applescript-7.0.0.tgz",
|
|
5751
|
+
"integrity": "sha512-9by4Ij99JUr/MCFBUkDKLWK3G9HVXmabKz9U5MlIAIuvuzkiOicRYs8XJLxX+xahD+mLiiCYDqF9dKAgtzKP1A==",
|
|
5752
|
+
"license": "MIT",
|
|
5753
|
+
"engines": {
|
|
5754
|
+
"node": ">=18"
|
|
5755
|
+
},
|
|
5756
|
+
"funding": {
|
|
5757
|
+
"url": "https://github.com/sponsors/sindresorhus"
|
|
5758
|
+
}
|
|
5759
|
+
},
|
|
5482
5760
|
"node_modules/run-async": {
|
|
5483
5761
|
"version": "3.0.0",
|
|
5484
5762
|
"resolved": "https://registry.npmjs.org/run-async/-/run-async-3.0.0.tgz",
|
|
@@ -6802,6 +7080,27 @@
|
|
|
6802
7080
|
"typedarray-to-buffer": "^3.1.5"
|
|
6803
7081
|
}
|
|
6804
7082
|
},
|
|
7083
|
+
"node_modules/ws": {
|
|
7084
|
+
"version": "8.18.2",
|
|
7085
|
+
"resolved": "https://registry.npmjs.org/ws/-/ws-8.18.2.tgz",
|
|
7086
|
+
"integrity": "sha512-DMricUmwGZUVr++AEAe2uiVM7UoO9MAVZMDu05UQOaUII0lp+zOzLLU4Xqh/JvTqklB1T4uELaaPBKyjE1r4fQ==",
|
|
7087
|
+
"license": "MIT",
|
|
7088
|
+
"engines": {
|
|
7089
|
+
"node": ">=10.0.0"
|
|
7090
|
+
},
|
|
7091
|
+
"peerDependencies": {
|
|
7092
|
+
"bufferutil": "^4.0.1",
|
|
7093
|
+
"utf-8-validate": ">=5.0.2"
|
|
7094
|
+
},
|
|
7095
|
+
"peerDependenciesMeta": {
|
|
7096
|
+
"bufferutil": {
|
|
7097
|
+
"optional": true
|
|
7098
|
+
},
|
|
7099
|
+
"utf-8-validate": {
|
|
7100
|
+
"optional": true
|
|
7101
|
+
}
|
|
7102
|
+
}
|
|
7103
|
+
},
|
|
6805
7104
|
"node_modules/xdg-basedir": {
|
|
6806
7105
|
"version": "5.1.0",
|
|
6807
7106
|
"resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-5.1.0.tgz",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { render, useState, useEffect, useMemo, useRef, useErrorBoundary, createContext, useContext } from '
|
|
1
|
+
import { render, useState, useEffect, useMemo, useRef, useErrorBoundary, createContext, useContext } from 'baraqex';
|
|
2
2
|
import './main.css';
|
|
3
3
|
|
|
4
4
|
// JSX type declarations
|
|
@@ -4,7 +4,7 @@ export default defineConfig({
|
|
|
4
4
|
esbuild: {
|
|
5
5
|
jsxFactory: 'jsx',
|
|
6
6
|
jsxFragment: 'Fragment',
|
|
7
|
-
jsxInject: `import { jsx } from '
|
|
7
|
+
jsxInject: `import { jsx } from 'baraqex';`
|
|
8
8
|
},
|
|
9
9
|
define: {
|
|
10
10
|
// Ensure we're in browser mode
|
|
@@ -26,7 +26,8 @@ export default defineConfig({
|
|
|
26
26
|
],
|
|
27
27
|
// Force include browser-safe modules
|
|
28
28
|
include: [
|
|
29
|
-
'frontend-hamroun'
|
|
29
|
+
'frontend-hamroun',
|
|
30
|
+
'baraqex'
|
|
30
31
|
]
|
|
31
32
|
},
|
|
32
33
|
resolve: {
|
|
@@ -2,41 +2,28 @@
|
|
|
2
2
|
PORT=3000
|
|
3
3
|
NODE_ENV=development
|
|
4
4
|
|
|
5
|
-
#
|
|
6
|
-
|
|
7
|
-
JWT_EXPIRES_IN=7d
|
|
5
|
+
# Database Configuration (Optional)
|
|
6
|
+
# Uncomment and configure the database you want to use
|
|
8
7
|
|
|
9
|
-
#
|
|
10
|
-
# DATABASE_URL=mongodb://localhost:27017/
|
|
8
|
+
# MongoDB
|
|
9
|
+
# DATABASE_URL=mongodb://localhost:27017/baraqex-app
|
|
11
10
|
# DATABASE_TYPE=mongodb
|
|
12
11
|
|
|
13
|
-
#
|
|
14
|
-
# DATABASE_URL=
|
|
15
|
-
# DATABASE_TYPE=postgres
|
|
16
|
-
|
|
17
|
-
# For MySQL:
|
|
18
|
-
# DATABASE_URL=mysql://username:password@localhost:3306/fullstack_app
|
|
12
|
+
# MySQL
|
|
13
|
+
# DATABASE_URL=mysql://username:password@localhost:3306/baraqex_app
|
|
19
14
|
# DATABASE_TYPE=mysql
|
|
20
15
|
|
|
21
|
-
#
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
# Session Configuration
|
|
25
|
-
SESSION_SECRET=your-session-secret-key
|
|
26
|
-
|
|
27
|
-
# Email Configuration (for future features)
|
|
28
|
-
# SMTP_HOST=smtp.gmail.com
|
|
29
|
-
# SMTP_PORT=587
|
|
30
|
-
# SMTP_USER=your-email@gmail.com
|
|
31
|
-
# SMTP_PASS=your-app-password
|
|
16
|
+
# PostgreSQL
|
|
17
|
+
# DATABASE_URL=postgresql://username:password@localhost:5432/baraqex_app
|
|
18
|
+
# DATABASE_TYPE=postgres
|
|
32
19
|
|
|
33
|
-
#
|
|
34
|
-
|
|
35
|
-
|
|
20
|
+
# Authentication (Optional)
|
|
21
|
+
# JWT_SECRET=your-super-secret-jwt-key-change-this-in-production
|
|
22
|
+
# JWT_EXPIRES_IN=7d
|
|
36
23
|
|
|
37
|
-
#
|
|
38
|
-
#
|
|
24
|
+
# CORS Configuration (Optional)
|
|
25
|
+
# FRONTEND_URL=http://localhost:3000
|
|
39
26
|
|
|
40
27
|
# API Rate Limiting
|
|
41
|
-
RATE_LIMIT_WINDOW_MS=900000
|
|
42
|
-
RATE_LIMIT_MAX_REQUESTS=100
|
|
28
|
+
# RATE_LIMIT_WINDOW_MS=900000
|
|
29
|
+
# RATE_LIMIT_MAX_REQUESTS=100
|
|
@@ -1,52 +1,16 @@
|
|
|
1
|
-
# Fullstack
|
|
1
|
+
# Baraqex Fullstack Template
|
|
2
2
|
|
|
3
|
-
A complete fullstack application template built with
|
|
3
|
+
A complete fullstack application template built with Baraqex framework, featuring both frontend and backend capabilities.
|
|
4
4
|
|
|
5
5
|
## 🚀 Features
|
|
6
6
|
|
|
7
|
-
- **
|
|
8
|
-
- **
|
|
9
|
-
- **
|
|
10
|
-
- **
|
|
11
|
-
- **
|
|
12
|
-
- **
|
|
13
|
-
- **
|
|
14
|
-
- **Production Ready**: Environment configuration, logging, error handling
|
|
15
|
-
|
|
16
|
-
## 📋 Prerequisites
|
|
17
|
-
|
|
18
|
-
- Node.js 16+
|
|
19
|
-
- npm, yarn, or pnpm
|
|
20
|
-
- Database (optional - works with in-memory storage for demo)
|
|
21
|
-
|
|
22
|
-
## 🛠️ Quick Start
|
|
23
|
-
|
|
24
|
-
1. **Install dependencies**
|
|
25
|
-
```bash
|
|
26
|
-
npm install
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
2. **Environment setup**
|
|
30
|
-
```bash
|
|
31
|
-
cp .env.example .env
|
|
32
|
-
# Edit .env with your configuration
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
3. **Start development server**
|
|
36
|
-
```bash
|
|
37
|
-
npm run dev
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
4. **Open your browser**
|
|
41
|
-
- Frontend: http://localhost:3000
|
|
42
|
-
- API: http://localhost:3000/api
|
|
43
|
-
- API Docs: http://localhost:3000/api-docs
|
|
44
|
-
|
|
45
|
-
## 🎯 Default Credentials
|
|
46
|
-
|
|
47
|
-
For demo purposes, you can login with:
|
|
48
|
-
- **Username**: `admin` or `user`
|
|
49
|
-
- **Password**: `password`
|
|
7
|
+
- **Server-Side Rendering (SSR)** - Fast initial page loads with SEO benefits
|
|
8
|
+
- **API Routes** - Built-in API endpoint handling with Express.js
|
|
9
|
+
- **Database Integration** - Support for MongoDB, MySQL, and PostgreSQL
|
|
10
|
+
- **Authentication** - JWT-based authentication system
|
|
11
|
+
- **File-based Routing** - Automatic route generation based on file structure
|
|
12
|
+
- **TypeScript Support** - Full TypeScript support out of the box
|
|
13
|
+
- **Hot Reload** - Development server with hot reload capabilities
|
|
50
14
|
|
|
51
15
|
## 📁 Project Structure
|
|
52
16
|
|