Skip to content

Latest commit

Β 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 

Repository files navigation

ecoArchitect-Foundation: GitHub Repository Structure

Repository Name: ecoArchitect-foundation
Organization: UUON-Foundation
URL: https://github.com/UUON-Foundation/ecoArchitect-foundation


πŸ“ Recommended Repository Structure

ecoArchitect-foundation/
β”‚
β”œβ”€β”€ README.md                          ⭐ Main documentation (GitHub homepage)
β”œβ”€β”€ CONTRIBUTING.md                    πŸ‘₯ Contribution guidelines
β”œβ”€β”€ LICENSE                            πŸ“œ USAL-1.0 License
β”œβ”€β”€ CHANGELOG.md                       πŸ“ Version history
β”œβ”€β”€ CODE_OF_CONDUCT.md                 🀝 Community guidelines
β”‚
β”œβ”€β”€ docs/                              πŸ“š Documentation & Guides
β”‚   β”œβ”€β”€ 00-START-HERE.txt
β”‚   β”œβ”€β”€ QUICK-START.md
β”‚   β”œβ”€β”€ INDEX.md
β”‚   β”œβ”€β”€ SUMMARY.txt
β”‚   β”œβ”€β”€ FINAL-DELIVERY-COMPLETE.txt
β”‚   └── GITHUB-REPO-STRUCTURE.md (this file)
β”‚
β”œβ”€β”€ architecture/                      πŸ—οΈ Architecture & System Design
β”‚   β”œβ”€β”€ UUON-EcoArchitect-Console-Setup.md
β”‚   β”œβ”€β”€ UUON-EcoArchitect-DataFlow.md
β”‚   β”œβ”€β”€ UUON-EcoArchitect-Operations.md
β”‚   β”œβ”€β”€ UUON-EcoArchitect-QuickReference.md
β”‚   β”œβ”€β”€ AR-ECOSYSTEM-ANALYSIS.md
β”‚   └── diagrams/
β”‚       β”œβ”€β”€ system-architecture.ascii
β”‚       β”œβ”€β”€ data-flow.ascii
β”‚       β”œβ”€β”€ state-machine.ascii
β”‚       └── database-schema.sql
β”‚
β”œβ”€β”€ features/                          ✨ Feature Documentation
β”‚   β”œβ”€β”€ GOOGLE-LENS-COMPUTER-VISION.md
β”‚   β”œβ”€β”€ GOOGLE-LENS-IMPLEMENTATION.md
β”‚   β”œβ”€β”€ AR-QUICK-START-CODES.md
β”‚   β”œβ”€β”€ TRACE-FIRST-PHASE-ALPHA-RECON.md
β”‚   └── algorithms/
β”‚       β”œβ”€β”€ weight-estimation.md
β”‚       β”œβ”€β”€ geohashing-optimization.md
β”‚       └── environmental-impact.md
β”‚
β”œβ”€β”€ implementation/                    πŸ› οΈ Setup & Deployment
β”‚   β”œβ”€β”€ SETUP-CHECKLIST.md
β”‚   β”œβ”€β”€ DELIVERY-MANIFEST.md
β”‚   β”œβ”€β”€ _FILE-MANIFEST.txt
β”‚   β”œβ”€β”€ docker-compose.yml
β”‚   β”œβ”€β”€ .env.example
β”‚   └── database/
β”‚       β”œβ”€β”€ schema.sql
β”‚       β”œβ”€β”€ migrations/
β”‚       β”‚   β”œβ”€β”€ 001-initial-schema.sql
β”‚       β”‚   β”œβ”€β”€ 002-add-google-lens.sql
β”‚       β”‚   └── 003-add-environmental-impact.sql
β”‚       └── seeds/
β”‚           β”œβ”€β”€ material-reference.sql
β”‚           └── test-data.sql
β”‚
β”œβ”€β”€ src/                               πŸ’» Source Code
β”‚   β”‚
β”‚   β”œβ”€β”€ frontend/
β”‚   β”‚   └── react-native/
β”‚   β”‚       β”œβ”€β”€ app.tsx
β”‚   β”‚       β”œβ”€β”€ package.json
β”‚   β”‚       β”œβ”€β”€ tsconfig.json
β”‚   β”‚       β”œβ”€β”€ screens/
β”‚   β”‚       β”‚   β”œβ”€β”€ WalkingScreen.tsx
β”‚   β”‚       β”‚   β”œβ”€β”€ ARScreen.tsx
β”‚   β”‚       β”‚   β”œβ”€β”€ ScanScreen.tsx
β”‚   β”‚       β”‚   └── DashboardScreen.tsx
β”‚   β”‚       β”œβ”€β”€ components/
β”‚   β”‚       β”‚   β”œβ”€β”€ ScanTrashItem.tsx
β”‚   β”‚       β”‚   β”œβ”€β”€ ItemResultsCard.tsx
β”‚   β”‚       β”‚   β”œβ”€β”€ EnvironmentalDashboard.tsx
β”‚   β”‚       β”‚   └── LeaderboardView.tsx
β”‚   β”‚       β”œβ”€β”€ services/
β”‚   β”‚       β”‚   β”œβ”€β”€ GoogleVisionService.ts
β”‚   β”‚       β”‚   β”œβ”€β”€ DatabaseService.ts
β”‚   β”‚       β”‚   β”œβ”€β”€ GPSService.ts
β”‚   β”‚       β”‚   └── ARService.ts
β”‚   β”‚       β”œβ”€β”€ styles/
β”‚   β”‚       β”‚   β”œβ”€β”€ colors.ts
β”‚   β”‚       β”‚   β”œβ”€β”€ typography.ts
β”‚   β”‚       β”‚   └── spacing.ts
β”‚   β”‚       └── utils/
β”‚   β”‚           β”œβ”€β”€ weight-calculator.ts
β”‚   β”‚           β”œβ”€β”€ co2-calculator.ts
β”‚   β”‚           └── formatters.ts
β”‚   β”‚
β”‚   β”œβ”€β”€ backend/
β”‚   β”‚   β”œβ”€β”€ package.json
β”‚   β”‚   β”œβ”€β”€ tsconfig.json
β”‚   β”‚   β”œβ”€β”€ index.ts
β”‚   β”‚   β”œβ”€β”€ api/
β”‚   β”‚   β”‚   β”œβ”€β”€ routes/
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ items.ts
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ users.ts
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ impact.ts
β”‚   β”‚   β”‚   β”‚   └── auth.ts
β”‚   β”‚   β”‚   └── middleware/
β”‚   β”‚   β”‚       β”œβ”€β”€ auth.ts
β”‚   β”‚   β”‚       β”œβ”€β”€ validation.ts
β”‚   β”‚   β”‚       └── errorHandler.ts
β”‚   β”‚   β”œβ”€β”€ services/
β”‚   β”‚   β”‚   β”œβ”€β”€ DatabaseService.ts
β”‚   β”‚   β”‚   β”œβ”€β”€ GoogleVisionService.ts
β”‚   β”‚   β”‚   β”œβ”€β”€ WeightEstimationService.ts
β”‚   β”‚   β”‚   └── EnvironmentalImpactService.ts
β”‚   β”‚   β”œβ”€β”€ database/
β”‚   β”‚   β”‚   β”œβ”€β”€ connection.ts
β”‚   β”‚   β”‚   └── queries/
β”‚   β”‚   β”‚       β”œβ”€β”€ trash-items.ts
β”‚   β”‚   β”‚       β”œβ”€β”€ users.ts
β”‚   β”‚   β”‚       └── impact.ts
β”‚   β”‚   └── websocket/
β”‚   β”‚       β”œβ”€β”€ server.ts
β”‚   β”‚       └── handlers/
β”‚   β”‚           β”œβ”€β”€ item-scanned.ts
β”‚   β”‚           β”œβ”€β”€ user-update.ts
β”‚   β”‚           └── leaderboard-update.ts
β”‚   β”‚
β”‚   └── cv/
β”‚       β”œβ”€β”€ requirements.txt
β”‚       β”œβ”€β”€ google_lens_integration.py
β”‚       β”œβ”€β”€ weight_estimation/
β”‚       β”‚   β”œβ”€β”€ estimator.py
β”‚       β”‚   β”œβ”€β”€ models/
β”‚       β”‚   β”‚   └── density-reference.json
β”‚       β”‚   └── tests/
β”‚       β”‚       └── test_estimator.py
β”‚       └── offline/
β”‚           β”œβ”€β”€ tflite_model.py
β”‚           └── fallback-classifier.py
β”‚
β”œβ”€β”€ tests/                             πŸ§ͺ Testing
β”‚   β”œβ”€β”€ unit/
β”‚   β”‚   β”œβ”€β”€ services/
β”‚   β”‚   β”‚   β”œβ”€β”€ GoogleVisionService.test.ts
β”‚   β”‚   β”‚   β”œβ”€β”€ DatabaseService.test.ts
β”‚   β”‚   β”‚   └── WeightEstimation.test.ts
β”‚   β”‚   └── utils/
β”‚   β”‚       β”œβ”€β”€ weight-calculator.test.ts
β”‚   β”‚       └── co2-calculator.test.ts
β”‚   β”œβ”€β”€ integration/
β”‚   β”‚   β”œβ”€β”€ api-endpoints.test.ts
β”‚   β”‚   β”œβ”€β”€ database-operations.test.ts
β”‚   β”‚   └── websocket-communication.test.ts
β”‚   β”œβ”€β”€ load/
β”‚   β”‚   β”œβ”€β”€ concurrent-users.load.ts
β”‚   β”‚   └── database-stress.load.ts
β”‚   └── fixtures/
β”‚       β”œβ”€β”€ sample-images/
β”‚       └── test-data.json
β”‚
β”œβ”€β”€ .github/                           πŸ”§ GitHub Configuration
β”‚   β”œβ”€β”€ workflows/
β”‚   β”‚   β”œβ”€β”€ ci.yml                     (Test on every push)
β”‚   β”‚   β”œβ”€β”€ deploy.yml                 (Deploy to production)
β”‚   β”‚   β”œβ”€β”€ security-scan.yml          (Security checks)
β”‚   β”‚   └── performance.yml            (Benchmark tracking)
β”‚   β”œβ”€β”€ ISSUE_TEMPLATE/
β”‚   β”‚   β”œβ”€β”€ bug-report.md
β”‚   β”‚   β”œβ”€β”€ feature-request.md
β”‚   β”‚   └── question.md
β”‚   └── PULL_REQUEST_TEMPLATE.md
β”‚
β”œβ”€β”€ scripts/                           πŸ“œ Utility Scripts
β”‚   β”œβ”€β”€ setup-dev-environment.sh       (Dev setup)
β”‚   β”œβ”€β”€ run-tests.sh                   (Run all tests)
β”‚   β”œβ”€β”€ build.sh                       (Build project)
β”‚   β”œβ”€β”€ deploy.sh                      (Deploy to production)
β”‚   └── database/
β”‚       β”œβ”€β”€ migrate-up.sh
β”‚       └── seed-data.sh
β”‚
β”œβ”€β”€ config/                            βš™οΈ Configuration
β”‚   β”œβ”€β”€ development.env
β”‚   β”œβ”€β”€ staging.env
β”‚   β”œβ”€β”€ production.env
β”‚   └── database.config.ts
β”‚
β”œβ”€β”€ .gitignore                         🚫 Git ignore rules
β”œβ”€β”€ .env.example                       πŸ“‹ Environment template
β”œβ”€β”€ docker-compose.yml                 🐳 Docker orchestration
β”œβ”€β”€ Dockerfile                         🐳 Docker image
β”œβ”€β”€ package.json                       πŸ“¦ NPM dependencies
β”œβ”€β”€ tsconfig.json                      βš™οΈ TypeScript config
└── .editorconfig                      πŸ“ Editor configuration

πŸ“ Key Files Explained

Root Level

File Purpose
README.md Main project documentation (homepage)
CONTRIBUTING.md Contribution guidelines
LICENSE USAL-1.0 license
CHANGELOG.md Version history & release notes
CODE_OF_CONDUCT.md Community guidelines

Directories

Directory Purpose
docs/ Documentation & guides
architecture/ System design & architecture
features/ Feature documentation & algorithms
implementation/ Setup, deployment, database
src/ Source code (frontend, backend, CV)
tests/ Unit, integration, load tests
.github/ GitHub workflows & templates
scripts/ Utility scripts
config/ Environment configurations

πŸ”„ GitHub Workflows

File: .github/workflows/ci.yml

Runs on every push:

  • Unit tests
  • Integration tests
  • Linting
  • Type checking
  • Coverage reporting

File: .github/workflows/deploy.yml

Runs on release tag:

  • Build Docker image
  • Run smoke tests
  • Deploy to staging
  • Deploy to production
  • Send notifications

File: .github/workflows/security-scan.yml

Runs daily:

  • Dependency vulnerability scan
  • Code security audit
  • Secret detection
  • SAST analysis

File: .github/workflows/performance.yml

Runs on PR:

  • Performance benchmark
  • Comparison with baseline
  • Memory leak detection
  • Load testing

πŸ“‹ Issue Templates

Location: .github/ISSUE_TEMPLATE/

bug-report.md

  • What's happening (description)
  • How to reproduce
  • Expected behavior
  • Environment info
  • Logs/screenshots feature-request.md
  • Problem description
  • Proposed solution
  • Alternatives considered
  • Use cases question.md
  • Question title
  • Detailed question
  • Relevant context
  • What you've already tried

🏷️ GitHub Labels

Recommended labels for issues:

- bug             (Something isn't working)
- enhancement     (New feature or request)
- documentation   (Improvements or additions to documentation)
- good first issue (Good for newcomers)
- help wanted     (Need community assistance)
- performance     (Performance improvement)
- security        (Security vulnerability)
- testing         (Test coverage)
- wontfix         (Not planned to be fixed)
- question        (Further information requested)

… 173 more lines. Show full content

About

Application dedicated towards cleaning up trash using similar tools like Pokemon Go, where users get paid for walking and picking trash with hopes of extending into botany and biology annotating.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors