start.bat and start.sh script

This commit is contained in:
Flam3rboy 2021-08-15 00:10:54 +02:00
parent 8cde32ec1a
commit dfa71c3868
10 changed files with 306 additions and 16062 deletions

15588
api/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -32,8 +32,17 @@
"homepage": "https://fosscord.com",
"dependencies": {
"@fosscord/util": "file:../util",
"@types/amqplib": "^0.8.1",
"@types/bcrypt": "^5.0.0",
"@types/express": "^4.17.9",
"@types/i18next-node-fs-backend": "^2.1.0",
"@types/jest": "^26.0.22",
"@types/json-schema": "^7.0.7",
"@types/jsonwebtoken": "^8.5.0",
"@types/multer": "^1.4.5",
"@types/node": "^14.17.9",
"@types/node-fetch": "^2.5.7",
"@zerollup/ts-transform-paths": "^1.7.18",
"ajv": "^8.4.0",
"ajv-formats": "^2.1.0",
"amqplib": "^0.8.0",
@ -61,15 +70,6 @@
"multer": "^1.4.2",
"node-fetch": "^2.6.1",
"require_optional": "^1.0.1",
"@types/amqplib": "^0.8.1",
"@types/bcrypt": "^5.0.0",
"@types/express": "^4.17.9",
"@types/i18next-node-fs-backend": "^2.1.0",
"@types/jsonwebtoken": "^8.5.0",
"@types/multer": "^1.4.5",
"@types/node": "^14.17.9",
"@types/node-fetch": "^2.5.7",
"@zerollup/ts-transform-paths": "^1.7.18",
"ts-node-dev": "^1.1.6",
"typescript": "^4.1.2"
}

View File

@ -21,7 +21,6 @@
"async-exit-hook": "^2.0.1",
"express": "^4.17.1",
"mongodb-memory-server": "^7.3.6",
"mongodb-memory-server-global-4.4": "^7.3.6",
"node-os-utils": "^1.3.5",
"typescript": "^4.3.5"
}
@ -1039,19 +1038,6 @@
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
},
"node_modules/mongodb-memory-server-global-4.4": {
"version": "7.3.6",
"resolved": "https://registry.npmjs.org/mongodb-memory-server-global-4.4/-/mongodb-memory-server-global-4.4-7.3.6.tgz",
"integrity": "sha512-Qd7RwXvcwjlTKRvVyXZYF5rTlbnyBt8RK445+hqLzsMveQVmPK1VV4NWuEQ7JW3MWE/8CAVsNg+llIQBk0HfGw==",
"hasInstallScript": true,
"dependencies": {
"mongodb-memory-server-core": "7.3.6",
"tslib": "^2.3.0"
},
"engines": {
"node": ">=12.22.0"
}
},
"node_modules/ms": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
@ -2308,15 +2294,6 @@
}
}
},
"mongodb-memory-server-global-4.4": {
"version": "7.3.6",
"resolved": "https://registry.npmjs.org/mongodb-memory-server-global-4.4/-/mongodb-memory-server-global-4.4-7.3.6.tgz",
"integrity": "sha512-Qd7RwXvcwjlTKRvVyXZYF5rTlbnyBt8RK445+hqLzsMveQVmPK1VV4NWuEQ7JW3MWE/8CAVsNg+llIQBk0HfGw==",
"requires": {
"mongodb-memory-server-core": "7.3.6",
"tslib": "^2.3.0"
}
},
"ms": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",

View File

@ -1,5 +1,4 @@
process.env.MONGOMS_DEBUG = "true";
// process.env.MONGOMS_DEBUG = "true";
import cluster from "cluster";
import os from "os";
import { setupDatabase } from "./Database";

430
cdn/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -22,6 +22,15 @@
"homepage": "https://github.com/discord-open-source/discord-cdn#readme",
"dependencies": {
"@fosscord/util": "file:../util",
"@types/body-parser": "^1.19.0",
"@types/btoa": "^1.2.3",
"@types/dotenv": "^8.2.0",
"@types/express": "^4.17.12",
"@types/fs-extra": "^9.0.12",
"@types/multer": "^1.4.7",
"@types/node": "^14.17.0",
"@types/node-fetch": "^2.5.7",
"@types/uuid": "^8.3.0",
"body-parser": "^1.19.0",
"btoa": "^1.2.1",
"cheerio": "^1.0.0-rc.5",
@ -37,16 +46,7 @@
"missing-native-js-functions": "^1.0.8",
"multer": "^1.4.2",
"node-fetch": "^2.6.1",
"uuid": "^8.3.2",
"typescript": "^4.1.2",
"@types/body-parser": "^1.19.0",
"@types/btoa": "^1.2.3",
"@types/dotenv": "^8.2.0",
"@types/express": "^4.17.12",
"@types/fs-extra": "^9.0.12",
"@types/multer": "^1.4.7",
"@types/node": "^14.17.0",
"@types/node-fetch": "^2.5.7",
"@types/uuid": "^8.3.0"
"uuid": "^8.3.2"
}
}

File diff suppressed because it is too large Load Diff

View File

@ -14,6 +14,11 @@
"license": "ISC",
"dependencies": {
"@fosscord/util": "file:../util",
"@types/amqplib": "^0.8.1",
"@types/jsonwebtoken": "^8.5.0",
"@types/mongoose-autopopulate": "^0.10.1",
"@types/uuid": "^8.3.0",
"@types/ws": "^7.4.0",
"ajv": "^8.5.0",
"amqplib": "^0.8.0",
"dotenv": "^8.2.0",
@ -22,14 +27,9 @@
"missing-native-js-functions": "^1.2.3",
"mongoose-autopopulate": "^0.12.3",
"node-fetch": "^2.6.1",
"ts-node-dev": "^1.1.6",
"typescript": "^4.2.3",
"uuid": "^8.3.2",
"ws": "^7.4.2",
"@types/amqplib": "^0.8.1",
"@types/jsonwebtoken": "^8.5.0",
"@types/mongoose-autopopulate": "^0.10.1",
"@types/uuid": "^8.3.0",
"@types/ws": "^7.4.0",
"ts-node-dev": "^1.1.6"
"ws": "^7.4.2"
}
}

4
start.bat Normal file
View File

@ -0,0 +1,4 @@
cd bundle
CALL npm install
CALL npm start
PAUSE

4
start.sh Normal file
View File

@ -0,0 +1,4 @@
cd bundle
npm install
npm start
read -rsp $'Press enter to exit...\n'