@onivoro/app-server-bucketvore 24.31.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/assets/.gitkeep +1 -0
- package/main.js +2852 -0
- package/package.json +50 -0
- package/src/index.d.ts +7 -0
- package/src/index.js +23 -0
package/package.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@onivoro/app-server-bucketvore",
|
|
3
|
+
"version": "24.31.1",
|
|
4
|
+
"description": "BucketVore NestJS application for S3 bucket management",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "commonjs",
|
|
7
|
+
"main": "./src/index.js",
|
|
8
|
+
"types": "./src/index.d.ts",
|
|
9
|
+
"bin": {
|
|
10
|
+
"bucketvore": "./main.js"
|
|
11
|
+
},
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "https://github.com/onivoro/monorepo.git"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"nestjs",
|
|
18
|
+
"s3",
|
|
19
|
+
"aws",
|
|
20
|
+
"file-explorer",
|
|
21
|
+
"server",
|
|
22
|
+
"onivoro"
|
|
23
|
+
],
|
|
24
|
+
"engines": {
|
|
25
|
+
"node": ">=18.0.0"
|
|
26
|
+
},
|
|
27
|
+
"publishConfig": {
|
|
28
|
+
"access": "public"
|
|
29
|
+
},
|
|
30
|
+
"files": [
|
|
31
|
+
"**/*.js",
|
|
32
|
+
"**/*.d.ts",
|
|
33
|
+
"**/*.js.map",
|
|
34
|
+
"assets/",
|
|
35
|
+
"package.json",
|
|
36
|
+
"README.md"
|
|
37
|
+
],
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@aws-sdk/client-s3": "3.782.0",
|
|
40
|
+
"@aws-sdk/credential-providers": "3.782.0",
|
|
41
|
+
"@aws-sdk/s3-request-presigner": "3.859.0",
|
|
42
|
+
"@nestjs/common": "10.4.20",
|
|
43
|
+
"@nestjs/core": "10.4.20",
|
|
44
|
+
"@nestjs/platform-express": "10.4.20",
|
|
45
|
+
"csstype": "3.1.3",
|
|
46
|
+
"reflect-metadata": "0.2.2",
|
|
47
|
+
"rxjs": "7.8.2",
|
|
48
|
+
"tslib": "2.8.1"
|
|
49
|
+
}
|
|
50
|
+
}
|
package/src/index.d.ts
ADDED
package/src/index.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const { NestFactory } = require('@nestjs/core');
|
|
2
|
+
|
|
3
|
+
// Load the app module class directly from dependencies
|
|
4
|
+
async function bootstrap() {
|
|
5
|
+
try {
|
|
6
|
+
// Try to dynamically import the module
|
|
7
|
+
const { AppServerBucketvoreModule } = await import('./app-server-bucketvore.module.js').catch(() => {
|
|
8
|
+
// Fallback: require from node_modules or relative path
|
|
9
|
+
throw new Error('AppServerBucketvoreModule not found. Make sure dependencies are installed.');
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
const app = await NestFactory.create(AppServerBucketvoreModule, { logger: console });
|
|
13
|
+
const port = process.env.HTTP_PORT || 3007;
|
|
14
|
+
await app.listen(port);
|
|
15
|
+
console.log(`BucketVore available at: http://localhost:${port}`);
|
|
16
|
+
return app;
|
|
17
|
+
} catch (error) {
|
|
18
|
+
console.error('Failed to bootstrap BucketVore application:', error);
|
|
19
|
+
throw error;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
module.exports = { bootstrap };
|