A Blazor WebAssembly application built on the Oqtane framework for tracking grower enrollments, garden mapping, tree monitoring, and program reporting for the 10 Trees permaculture program in rural South Africa.
The 10 Trees Digital Platform replaces paper-based processes for tracking permaculture training and tree distribution programs in rural villages near Hoedspruit, South Africa. The platform is designed for use by tree mentors working in the field and staff at the Centre for data analysis and reporting.
- Mobile-First Design: Optimized for small smartphones (Nokia, Samsung, off-brand) with touch-friendly interfaces
- Bilingual Support: English (en-ZA) and Xitsonga (ts-ZA) with single-language display
- Multi-Village Management: Secure data isolation with role-based access
- Comprehensive Tracking: End-to-end tracking from enrollment through tree survival monitoring
Multi-step workflow for enrolling new participants:
- Basic Information: Name, village, household details
- Eligibility Criteria: Program requirements and preferred criteria
- Commitments: Acknowledgment of program commitments
- Digital Signature: E-signature capture for consent
Document garden sites and existing resources:
- GPS coordinate capture (field or manual entry)
- Water availability and catchment systems
- Existing tree inventory (indigenous, fruit, nut trees)
- Space assessment for new trees
- Fence and resource documentation
Recurring garden health assessments:
- Tree survival tracking (planted vs. alive)
- Automatic survival rate calculation
- Problem identification (disease, pests, environmental)
- Permaculture practice compliance:
- Composting, mulching
- Water conservation and greywater use
- Chemical-free practices
- Help request flagging
Monitor permaculture training completion:
- Mark participant attendance
- Track progress toward tree eligibility
- View completion status
Generate reports and export data:
- Tree survival rates by village
- Permaculture practice compliance
- Monthly village reports
- Export to Excel (.xlsx) and CSV
- Date range and village filtering
Multi-tenant architecture with role-based access:
- Mentors: View only their assigned village
- Educators/Project Managers: View all villages, export data
- 10 Trees Admin: Full access including user management
Comprehensive bilingual implementation:
- Auto-detect device language with English fallback
- Manual language picker
- Single-language display (not side-by-side)
- All forms, labels, validation messages, and buttons localized
- Framework: .NET 10
- Platform: Oqtane Framework (Blazor WebAssembly)
- Language: C# 14.0
- Database: SQL Server with Entity Framework Core
- Testing: xUnit (
Tests/project) plus manual bilingual acceptance testing - Localization: .NET resource files (.resx)
Client/
?? Modules/
? ?? Enrollment/ # Grower enrollment workflows
?? Services/ # Client-side services and state management
?? Resources/ # Localization .resx files (en-ZA, ts-ZA)
?? Themes/ # Mobile-optimized theming
Server/
?? Controllers/ # API endpoints
?? Services/ # Business logic
?? Repository/ # Data access layer
?? Manager/ # Entity management
Shared/
?? Models/ # Data models shared between client and server
docs/
?? Specifications/ # System behaviour documentation (Wikidown wiki)
?? Plans/ # Implementation and test plans
?? Project/ # Project plan, meetings, reference documents
- Oqtane authentication and authorization
- Role-based access control
- Module-level permissions
- Village data isolation for mentors
| Role | Permissions |
|---|---|
| Mentor | Submit forms, view assigned village only |
| Educator | Submit forms, view all villages, export data |
| Project Manager | Same as Educator |
| 10 Trees Admin | Full programme data access including user management |
- Touch-friendly UI elements (minimum 44x44px touch targets)
- Large, readable fonts (minimum 16px body text)
- Minimal text entry; maximize checkboxes and Yes/No questions
- One section per page in multi-step workflows
- Progress indicators for multi-step forms
- Bootstrap card-based section organization
- No admin containers (direct component rendering)
- Form validation with clear error messages
- Auto-populated fields where possible
The project is specification-driven, with the specifications kept as plain markdown in the wiki under docs/Specifications/:
- Each page describes what a part of the application is meant to do and why, written for people rather than tools
- Pages focus on intention, not on mechanics that can be read from the code, and contain no Gherkin
- Any change that alters behaviour updates the relevant page in the same piece of work, so the wiki always matches the code
- Automated tests: xUnit in the
Tests/project
- .NET 10 SDK
- SQL Server Express LocalDB (installed with Visual Studio's "Data storage and processing" workload)
- Compatible IDE (Visual Studio 2022+ recommended)
The Server project is a complete Oqtane host: it references the Oqtane.Server NuGet package (currently 10.2.1), so running it starts the whole site with the TenTrees modules and theme loaded. You don't need a separate Oqtane framework checkout to run the app.
| Project | Contents |
|---|---|
Client |
Module UI (Client/Modules/<Module>), client HTTP services, theme |
Server |
Oqtane host, controllers, repositories, and the dev database in Server/Data |
Shared |
Models shared by client and server |
Sql |
SQL project with the module table definitions and seed scripts |
Tests |
xUnit tests |
A ready-to-use development database is in the repo at Server/Data/TenTrees.mdf (with TenTrees_log.ldf). It is a shared development copy of the Oqtane database, so you can run the site without going through the Oqtane install wizard.
Server/appsettings.json attaches it through LocalDB:
Data Source=(LocalDb)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\TenTrees.mdf;Initial Catalog=TenTrees;...
- Ask a maintainer for a login to the dev site. Credentials are never kept in the repo.
- Running the site changes the
.mdfand.ldffiles. To keep your local data changes out of commits, run:Reverse it withgit update-index --skip-worktree Server/Data/TenTrees.mdf Server/Data/TenTrees_log.ldf
--no-skip-worktreewhen you need to pull a newer copy of the dev database. - LocalDB registers the database by name (
TenTrees). If you clone the repo into a second folder, detach the old one first (sqllocaldbor SSMS), or LocalDB will refuse to attach the new file.
- Open
OpenEug.TenTrees.slnxand setOpenEug.TenTrees.Serveras the startup project. - Run with the
httpsprofile (ordotnet run --project Server). - Browse to the site and sign in with your dev login.
# Default ports
http://localhost:5000
https://localhost:5001:0) as it causes Blazor WebAssembly errors.
Oqtane API shapes (base classes, services, models) are checked against a local shallow clone of the framework, which is git-ignored:
git clone --depth 1 https://github.com/oqtane/oqtane.framework.git .oqtane-ref- Wiki is the specification.
docs/is a Wikidown wiki.docs/Specifications/describes what each part of the app is meant to do; update the relevant page in the same PR when behaviour changes. - Project patterns for Oqtane modules, JS interop, and accessibility/validation are written up in
.github/skills/.CLAUDE.mdsummarises the coding conventions. - Data access is raw SQL or Dapper. No EF migrations or navigation properties.
- Branches are named
feature/<issue>-<short-slug>and merged tomainthrough a pull request that references the issue. - Tests:
dotnet test Tests
See CONTRIBUTING.md for how work is tracked in GitHub issues and how changes reach main through pull requests.
This project serves rural South African communities with limited resources and connectivity. When contributing:
- Prioritize mobile optimization
- Include bilingual localization (en-ZA and ts-ZA)
- Follow Oqtane framework patterns
- Update the wiki specification for any behaviour you add or change
- Test on small/low-end smartphones
The 10 Trees program trains rural community members in permaculture practices and provides fruit, nut, and indigenous trees to establish sustainable food gardens. The digital platform tracks participants through the complete journey:
- Training enrollment
- Permaculture class attendance
- Garden site mapping
- Tree distribution
- Ongoing garden assessment and support
Target communities have limited smartphone access and primarily speak Xitsonga. The platform is designed to work within these constraints while providing program staff with data for impact reporting and continuous improvement.
MIT License
Copyright (c) 2025 Open Eugene
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
[Contact information to be added]