Optimize deployment and improve package.json

This commit is contained in:
2025-08-23 21:55:21 +03:00
Unverified
parent 91e815029e
commit 1fa1178397
4 changed files with 47 additions and 3 deletions
+7
View File
@@ -7,12 +7,19 @@
"backend:run": "cd backend && ../.venv/bin/fastapi dev --port 8300 main.py",
"backend:dependencies": "python3 -m venv .venv && ./.venv/bin/pip3 install -r backend/requirements.txt",
"backend:reinstall": "rm -rf .venv && npm run backend:dependencies",
"backend:clean": "rm -rf backend/data",
"frontend:dev": "vite frontend",
"frontend:build": "tsc --project frontend && vite build frontend",
"frontend:preview": "vite preview frontend",
"frontend:dependencies": "npm install",
"frontend:clean": "rm -rf frontend/dist",
"dev": "concurrently 'npm run frontend:dev' 'npm run backend:run'",
"build": "npm run frontend:build",
"preview": "cd deployment && docker compose up --build --watch",
"preview:clean": "cd deployment && docker compose down -v",
"clean": "npm run backend:clean && npm run frontend:clean && npm run preview:clean",
"install": "npm run backend:dependencies"
},
"devDependencies": {