mk.sh 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. #!/usr/bin/env bash
  2. set -euo pipefail
  3. mkdir -p backend/app/{crud,api,core,services,celery_app}
  4. mkdir -p backend/{uploaded_scripts,alembic/versions}
  5. mkdir -p frontend/{public,src/{router,stores,components/{Layout,Common,Dialogs},views,api,utils}}
  6. mkdir -p nginx/conf.d docker scripts logs
  7. touch backend/app/__init__.py
  8. touch backend/app/main.py
  9. touch backend/app/models.py
  10. touch backend/app/schemas.py
  11. touch backend/app/database.py
  12. touch backend/app/crud/__init__.py
  13. touch backend/app/crud/categories.py
  14. touch backend/app/crud/spiders.py
  15. touch backend/app/crud/executions.py
  16. touch backend/app/api/__init__.py
  17. touch backend/app/api/categories.py
  18. touch backend/app/api/spiders.py
  19. touch backend/app/api/executions.py
  20. touch backend/app/core/__init__.py
  21. touch backend/app/core/config.py
  22. touch backend/app/core/security.py
  23. touch backend/app/services/__init__.py
  24. touch backend/app/services/spider_service.py
  25. touch backend/app/services/scheduler_service.py
  26. touch backend/app/services/file_service.py
  27. touch backend/app/celery_app/__init__.py
  28. touch backend/app/celery_app/celery.py
  29. touch backend/app/celery_app/tasks.py
  30. touch backend/app/celery_app/scheduler.py
  31. touch backend/uploaded_scripts/.gitkeep
  32. touch backend/requirements.txt
  33. touch backend/alembic/env.py
  34. touch backend/alembic/alembic.ini
  35. touch frontend/public/index.html
  36. touch frontend/public/favicon.ico
  37. touch frontend/src/main.js
  38. touch frontend/src/App.vue
  39. touch frontend/src/router/index.js
  40. touch frontend/src/stores/index.js
  41. touch frontend/src/stores/categories.js
  42. touch frontend/src/stores/spiders.js
  43. touch frontend/src/stores/executions.js
  44. touch frontend/src/components/Layout/Sidebar.vue
  45. touch frontend/src/components/Layout/Header.vue
  46. touch frontend/src/components/Common/CronEditor.vue
  47. touch frontend/src/components/Common/CodeEditor.vue
  48. touch frontend/src/components/Common/LogViewer.vue
  49. touch frontend/src/components/Dialogs/CategoryDialog.vue
  50. touch frontend/src/components/Dialogs/SpiderDialog.vue
  51. touch frontend/src/views/Dashboard.vue
  52. touch frontend/src/views/Categories.vue
  53. touch frontend/src/views/Spiders.vue
  54. touch frontend/src/views/Executions.vue
  55. touch frontend/src/api/index.js
  56. touch frontend/src/api/categories.js
  57. touch frontend/src/api/spiders.js
  58. touch frontend/src/api/executions.js
  59. touch frontend/src/utils/request.js
  60. touch frontend/src/utils/helpers.js
  61. touch frontend/package.json
  62. touch frontend/vite.config.js
  63. touch frontend/index.html
  64. touch nginx/nginx.conf
  65. touch nginx/conf.d/spider-scheduler.conf
  66. touch docker/Dockerfile.backend
  67. touch docker/Dockerfile.frontend
  68. touch docker/docker-compose.yml
  69. touch scripts/start.sh
  70. touch scripts/init_db.py
  71. touch scripts/backup.sh
  72. touch logs/app.log
  73. touch logs/celery.log
  74. touch logs/scheduler.log
  75. touch .env.example
  76. touch .gitignore
  77. touch README.md
  78. touch requirements.txt
  79. echo "✅ 当前目录骨架创建完成!"