chore: Organize workspace structure - move docs, workflows, scripts to subdirectories

Organization:
- Created docs/ with setup/, guides/, history/ subdirectories
- Created workflows/ with trading/, analytics/, telegram/, archive/ subdirectories
- Created scripts/ with docker/, setup/, testing/ subdirectories
- Created tests/ for TypeScript test files
- Created archive/ for unused reference files

Moved files:
- 17 documentation files → docs/
- 16 workflow JSON files → workflows/
- 10 shell scripts → scripts/
- 4 test files → tests/
- 5 unused files → archive/

Updated:
- README.md with new file structure and documentation paths

Deleted:
- data/ (empty directory)
- screenshots/ (empty directory)

Critical files remain in root:
- telegram_command_bot.py (active bot - used by Dockerfile)
- watch-restart.sh (systemd service dependency)
- All Dockerfiles and docker-compose files
- All environment files

Validation:
 Containers running (trading-bot-v4, telegram-trade-bot, postgres)
 API responding (positions endpoint tested)
 Telegram bot functional (/status command tested)
 All critical files present in root

No code changes - purely organizational.
System continues running without interruption.

Recovery: git revert HEAD or git reset --hard cleanup-before
This commit is contained in:
mindesbunister
2025-10-27 12:59:25 +01:00
parent f8f289232a
commit 14d5de2c64
48 changed files with 37 additions and 14 deletions

View File

@@ -278,14 +278,40 @@ Changes to `.env` require container restart to take effect.
```
traderv4/
├── README.md ← You are here
├── DOCKER.md ← Docker deployment guide
├── SETUP.md ← Setup instructions
├── TESTING.md ← Testing guide
├── docker-compose.yml ← Docker orchestration
├── Dockerfile ← Multi-stage build
├── .env ← Configuration (template)
├── package.json ← Dependencies
├── docs/ ← Documentation
│ ├── setup/
│ │ ├── DOCKER.md ← Docker deployment guide
│ │ ├── SETUP.md ← Setup instructions
│ │ ├── SETTINGS_SETUP.md ← Settings guide
│ │ ├── TELEGRAM_BOT_README.md ← Telegram bot guide
│ │ ├── N8N_WORKFLOW_SETUP.md ← n8n workflow setup
│ │ └── N8N_DATABASE_SETUP.md ← n8n database setup
│ ├── guides/
│ │ ├── TESTING.md ← Testing guide
│ │ ├── N8N_WORKFLOW_GUIDE.md ← n8n usage guide
│ │ └── WORKFLOW_VERIFICATION.md ← Workflow testing
│ └── history/
│ ├── PHASE_1_COMPLETE.md ← Phase 1 completion
│ ├── PHASE_2_COMPLETE.md ← Phase 2 completion
│ └── ... ← Development history
├── workflows/ ← n8n workflow files
│ ├── trading/ ← Main trading workflows
│ ├── analytics/ ← Analytics workflows
│ └── telegram/ ← Telegram bot workflows
├── scripts/ ← Utility scripts
│ ├── docker/ ← Docker helpers
│ ├── setup/ ← Setup scripts
│ └── testing/ ← Test scripts
├── tests/ ← Test files
├── app/
│ ├── layout.tsx ← Root layout
│ ├── globals.css ← Tailwind styles
@@ -312,8 +338,8 @@ traderv4/
├── config/
│ └── trading.ts ← Market configurations
├── n8n-complete-workflow.json ← Full n8n workflow
└── n8n-trader-workflow.json ← Alternative workflow
├── prisma/
│ └── schema.prisma ← Database schema
```
---
@@ -323,15 +349,12 @@ traderv4/
| Document | Purpose |
|----------|---------|
| `README.md` | This overview |
| `QUICKREF_PHASE2.md` | Quick reference card |
| `SETUP.md` | Detailed setup instructions |
| `TESTING.md` | Comprehensive testing guide |
| `PHASE_2_COMPLETE.md` | Phase 2 feature overview |
| `PHASE_2_SUMMARY.md` | Detailed Phase 2 summary |
**Root documentation:**
- `../TRADING_BOT_V4_MANUAL.md` - Complete manual
- `../QUICKSTART_V4.md` - Quick start guide
| `docs/setup/SETUP.md` | Detailed setup instructions |
| `docs/setup/DOCKER.md` | Docker deployment guide |
| `docs/setup/TELEGRAM_BOT_README.md` | Telegram bot setup |
| `docs/guides/TESTING.md` | Comprehensive testing guide |
| `docs/history/PHASE_2_COMPLETE.md` | Phase 2 feature overview |
| `workflows/trading/` | n8n workflow files |
- `../N8N_SETUP_GUIDE.md` - n8n configuration
---