replace python django backend with nodejs backend

This commit is contained in:
wea_ondara
2024-05-27 18:59:58 +02:00
parent ebd0748894
commit 8b60d023e8
123 changed files with 15193 additions and 88 deletions

54
backend/package.json Normal file
View File

@@ -0,0 +1,54 @@
{
"name": "ai-backend",
"version": "1.0.0",
"private": true,
"node": ">=21.0.0",
"scripts": {
"dev-win": "set NODE_ENV=development && run-p dev:1 dev:2",
"dev": "NODE_ENV=development run-p dev:1 dev:2",
"dev:1": "tsc --watch --preserveWatchOutput -p tsconfig.dev.json",
"dev:2": "wait-on dev/main.js && nodemon -q --watch dev/ dev/main.js",
"build": "run-s tsoa:spec tsoa:routes type-check build-only test",
"build-only": "tsc",
"type-check": "tsc --noEmit --composite false",
"migrate:make": "knex migrate:make -x ts",
"run": "node dist/main.js",
"test": "jest",
"tsoa:spec": "npm exec tsoa spec",
"tsoa:routes": "npm exec tsoa routes"
},
"dependencies": {
"ajv-formats": "^3.0.1",
"bcrypt": "^5.1.1",
"compression": "^1.7.4",
"discord.js": "^14.15.2",
"express": "^4.19.2",
"express-session": "^1.18.0",
"express-ws": "^5.0.2",
"filewatcher": "^3.0.1",
"glob": "^10.3.16",
"knex": "^3.1.0",
"mysql2": "^3.9.7",
"objection": "^3.1.4",
"sqlite3": "^5.1.7",
"typescript-ioc": "^3.2.2"
},
"devDependencies": {
"@openapitools/openapi-generator-cli": "^2.13.4",
"@rushstack/eslint-patch": "^1.10.3",
"@types/bcrypt": "^5.0.2",
"@types/compression": "^1.7.5",
"@types/express": "^4.17.21",
"@types/express-session": "^1.18.0",
"@types/jsdom": "^21.1.6",
"@types/node": "^20.12.12",
"@types/semaphore": "^1.1.4",
"jest": "^29.7.0",
"nodemon": "^3.1.0",
"npm-run-all2": "^6.2.0",
"ts-jest": "^29.1.3",
"tsoa": "^6.2.1",
"typescript": "^5.4.5",
"wait-on": "^7.2.0"
}
}