GeezerVison is showing github.com — GitHub - bhima-novelvista/FDE_Logistics: Cold-Chain Logistics FDE Project
Folders and files
| Name | Name | Last commit message | Last commit date |
|---|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
|
Repository files navigation
# FDE_PB_Sol: Cold-Chain Logistics FDE Project
This project shows how a Forward Deployed Engineer (FDE) turns a **legacy logistics system** into an **AI-powered dispatch assistant**. It follows the project's architecture diagram (*Legacy System vs AI-Powered Architecture*) and the HLD, LLD and Business Proposal.
## Status
| Step | What | Status |
|---|---|---|
| **1** | **Legacy system:** MySQL 8.4 in Docker, legacy-style table, CSV loaded (32,065 rows, 26 columns) | ✅ Built. Setup guide for **macOS**: [docs/01_Legacy_System_Setup_Guide_macOS.md](docs/01_Legacy_System_Setup_Guide_macOS.md) · for **Windows**: [docs/01_Legacy_System_Setup_Guide_Windows.md](docs/01_Legacy_System_Setup_Guide_Windows.md) |
| 2 | Data security: readable view over the legacy table, least-privilege AI login, audit table | Next |
| 3 | Company knowledge: SOP documents in `data/policy/`, search index (RAG) | Later |
| 4 | AI agents and tools (SQL, weather API, SOP search) in `src_maf/` | Later |
| 5 | Audit trail, UI and CLI | Later |
| 6 | Deployment (GitHub Actions → AWS EC2) | Later |
## Project structure
```text
FDE_PB_Sol/
├── README.md this file
├── .env.example settings template (no secrets)
├── .env YOUR private settings (created in Step 1, never committed)
├── .gitignore keeps .env and generated files out of git
├── .gitattributes keeps Unix line endings in container scripts (Windows + git)
├── data/
│ ├── raw/ dynamic_supply_chain_logistics_dataset.csv (source data, never modified)
│ ├── source/data.txt where the data came from (Kaggle)
│ └── policy/ SOP documents (later step)
├── legacy_system/ Step 1: the "legacy enterprise database"
│ ├── docker-compose.yml MySQL 8.4 container fde-mysql, port 127.0.0.1:3306, volume fde_mysql_data
│ ├── create_env.sh creates .env with hidden password prompts (macOS)
│ ├── create_env.ps1 the same for Windows (PowerShell)
│ └── mysql/scripts/ SQL + helpers that run inside the Linux container (same on every OS)
│ ├── run_sql.sh
│ ├── 01_create_legacy_schema.sql
│ ├── 02_create_bi_analyst.sh
│ ├── 03_load_legacy_data.sql
│ └── 04_verify_load.sql
├── docs/
│ ├── 01_Legacy_System_Setup_Guide_macOS.md
│ └── 01_Legacy_System_Setup_Guide_Windows.md
└── src_maf/ AI solution (later step)
```
## Quick start (after the first setup in a guide)
**macOS (Terminal):**
```bash
cd ~/Documents/FDE_PB_Sol
open -a Docker
until docker info >/dev/null 2>&1; do echo "waiting for Docker to start..."; sleep 3; done
docker compose -f legacy_system/docker-compose.yml --env-file .env up -d --wait
docker exec fde-mysql sh /scripts/run_sql.sh /scripts/04_verify_load.sql
```
**Windows (PowerShell):** start Docker Desktop from the Start menu and wait until it shows *Engine running*, then:
```powershell
Set-Location "$([Environment]::GetFolderPath('MyDocuments'))\FDE_PB_Sol"
docker compose -f legacy_system/docker-compose.yml --env-file .env up -d --wait
docker exec fde-mysql sh /scripts/run_sql.sh /scripts/04_verify_load.sql
```
## Data
- **Source:** Kaggle, *Logistics and Supply Chain Dataset* by datasetengineer (see `data/source/data.txt`).
- **Content:** 32,065 hourly readings, 1 Jan 2021 00:00 to 29 Aug 2024 00:00, 26 columns, no missing values.
- **Legacy table:** `legacy_fleet.TBL_SC_FLEET_HIST_RAW`, which keeps all 26 columns under cryptic legacy names (mapping in Appendix A of either guide).
# FDE_Logistics
About
Cold-Chain Logistics FDE Project
Resources
Stars
0 stars
Watchers
0 watching
Forks