|
|
@@ -0,0 +1,82 @@
|
|
|
+#!/usr/bin/env bash
|
|
|
+set -euo pipefail
|
|
|
+
|
|
|
+mkdir -p backend/app/{crud,api,core,services,celery_app}
|
|
|
+mkdir -p backend/{uploaded_scripts,alembic/versions}
|
|
|
+mkdir -p frontend/{public,src/{router,stores,components/{Layout,Common,Dialogs},views,api,utils}}
|
|
|
+mkdir -p nginx/conf.d docker scripts logs
|
|
|
+
|
|
|
+touch backend/app/__init__.py
|
|
|
+touch backend/app/main.py
|
|
|
+touch backend/app/models.py
|
|
|
+touch backend/app/schemas.py
|
|
|
+touch backend/app/database.py
|
|
|
+touch backend/app/crud/__init__.py
|
|
|
+touch backend/app/crud/categories.py
|
|
|
+touch backend/app/crud/spiders.py
|
|
|
+touch backend/app/crud/executions.py
|
|
|
+touch backend/app/api/__init__.py
|
|
|
+touch backend/app/api/categories.py
|
|
|
+touch backend/app/api/spiders.py
|
|
|
+touch backend/app/api/executions.py
|
|
|
+touch backend/app/core/__init__.py
|
|
|
+touch backend/app/core/config.py
|
|
|
+touch backend/app/core/security.py
|
|
|
+touch backend/app/services/__init__.py
|
|
|
+touch backend/app/services/spider_service.py
|
|
|
+touch backend/app/services/scheduler_service.py
|
|
|
+touch backend/app/services/file_service.py
|
|
|
+touch backend/app/celery_app/__init__.py
|
|
|
+touch backend/app/celery_app/celery.py
|
|
|
+touch backend/app/celery_app/tasks.py
|
|
|
+touch backend/app/celery_app/scheduler.py
|
|
|
+touch backend/uploaded_scripts/.gitkeep
|
|
|
+touch backend/requirements.txt
|
|
|
+touch backend/alembic/env.py
|
|
|
+touch backend/alembic/alembic.ini
|
|
|
+touch frontend/public/index.html
|
|
|
+touch frontend/public/favicon.ico
|
|
|
+touch frontend/src/main.js
|
|
|
+touch frontend/src/App.vue
|
|
|
+touch frontend/src/router/index.js
|
|
|
+touch frontend/src/stores/index.js
|
|
|
+touch frontend/src/stores/categories.js
|
|
|
+touch frontend/src/stores/spiders.js
|
|
|
+touch frontend/src/stores/executions.js
|
|
|
+touch frontend/src/components/Layout/Sidebar.vue
|
|
|
+touch frontend/src/components/Layout/Header.vue
|
|
|
+touch frontend/src/components/Common/CronEditor.vue
|
|
|
+touch frontend/src/components/Common/CodeEditor.vue
|
|
|
+touch frontend/src/components/Common/LogViewer.vue
|
|
|
+touch frontend/src/components/Dialogs/CategoryDialog.vue
|
|
|
+touch frontend/src/components/Dialogs/SpiderDialog.vue
|
|
|
+touch frontend/src/views/Dashboard.vue
|
|
|
+touch frontend/src/views/Categories.vue
|
|
|
+touch frontend/src/views/Spiders.vue
|
|
|
+touch frontend/src/views/Executions.vue
|
|
|
+touch frontend/src/api/index.js
|
|
|
+touch frontend/src/api/categories.js
|
|
|
+touch frontend/src/api/spiders.js
|
|
|
+touch frontend/src/api/executions.js
|
|
|
+touch frontend/src/utils/request.js
|
|
|
+touch frontend/src/utils/helpers.js
|
|
|
+touch frontend/package.json
|
|
|
+touch frontend/vite.config.js
|
|
|
+touch frontend/index.html
|
|
|
+touch nginx/nginx.conf
|
|
|
+touch nginx/conf.d/spider-scheduler.conf
|
|
|
+touch docker/Dockerfile.backend
|
|
|
+touch docker/Dockerfile.frontend
|
|
|
+touch docker/docker-compose.yml
|
|
|
+touch scripts/start.sh
|
|
|
+touch scripts/init_db.py
|
|
|
+touch scripts/backup.sh
|
|
|
+touch logs/app.log
|
|
|
+touch logs/celery.log
|
|
|
+touch logs/scheduler.log
|
|
|
+touch .env.example
|
|
|
+touch .gitignore
|
|
|
+touch README.md
|
|
|
+touch requirements.txt
|
|
|
+
|
|
|
+echo "✅ 当前目录骨架创建完成!"
|