DEV Community

Daniel Ioni
Daniel Ioni

Posted on

🌱 MyZubster: 5 New Dashboards for Urban Gardens

🌱 MyZubster: 5 New Dashboards for Urban Gardens

How we transformed the ecosystem in 24 hours with 5 completed bounties
The Story

Today we completed 5 fundamental bounties for the MyZubster ecosystem, delivering a suite of dashboards and marketplaces that make urban gardens finally accessible and manageable.

In just 24 hours, we transformed the project from "prototype" to "LIVE infrastructure" with:

5 interactive dashboards

3 complete REST APIs

2 functional marketplaces

1 P2P exchange system
Enter fullscreen mode Exit fullscreen mode

πŸ“Š The 5 New Dashboards
1️⃣ #8 - Public Dashboard (http://localhost:3005)

Real-time monitoring of urban gardens.

πŸ“ˆ Real-time statistics (gardens, tokens, transactions)

πŸ—ΊοΈ Interactive map with Leaflet.js

πŸ“Š Growth charts with Recharts

πŸ”„ Auto-refresh every 30 seconds

🎨 Responsive design with Tailwind CSS
Enter fullscreen mode Exit fullscreen mode

javascript

// Main component example
function App() {
const [stats, setStats] = useState(null);
const [gardens, setGardens] = useState([]);
const [chartData, setChartData] = useState([]);

useEffect(() => {
fetchData();
const interval = setInterval(fetchData, 30000);
return () => clearInterval(interval);
}, []);
// ...
}

2️⃣ #1 - Urban Garden Map (http://localhost:3010)

Interactive visualization of all gardens.

πŸ—ΊοΈ Interactive map with Leaflet.js

πŸ” Status filters (active/pending/inactive)

πŸ”Ž Search by name and address

πŸ“ Popup with garden details

πŸ“‹ Side panel with selected garden details
Enter fullscreen mode Exit fullscreen mode

javascript

// Filters and search
const filteredGardens = gardens.filter(garden => {
const matchesFilter = filter === 'all' || garden.status === filter;
const matchesSearch = garden.name.toLowerCase().includes(searchTerm.toLowerCase());
return matchesFilter && matchesSearch;
});

3️⃣ #2 - Garden Dashboard (http://localhost:3020)

Complete urban garden management.

πŸ“‹ List of all gardens with status

πŸ“‘ Real-time sensor readings (Temperature, Humidity, pH, EC)

πŸ“Š Historical charts with Recharts

πŸ“œ Transaction history

πŸ’§ Irrigation and control commands
Enter fullscreen mode Exit fullscreen mode

javascript

// Real-time sensor data

Temperature

  {sensorData[sensorData.length - 1]?.temperature || '--'}Β°C
Enter fullscreen mode Exit fullscreen mode

{/* ... other sensors ... */}

4️⃣ #4 - Garden Products Marketplace (http://localhost:3030)

Marketplace for garden products.

πŸ›’ Product listing with categories (seeds, plants, tools, products)

πŸ” Filters and search

πŸ›οΈ Shopping cart with quantity management

πŸ’³ Checkout with MYZ payment

πŸ“± Responsive design
Enter fullscreen mode Exit fullscreen mode

javascript

// Add to cart
const addToCart = (product) => {
setCart(prev => {
const existing = prev.find(item => item.id === product.id);
if (existing) {
return prev.map(item =>
item.id === product.id
? { ...item, quantity: item.quantity + 1 }
: item
);
}
return [...prev, { ...product, quantity: 1 }];
});
toast.success(${product.name} added to cart!);
};

5️⃣ #5 - Seed Exchange (http://localhost:3040)

P2P seed and cutting exchange.

🌱 Seed/cutting listings with filters and search

πŸ“¨ Request system for exchanges

⭐ Reviews and ratings between users

πŸ“Š Exchange dashboard

πŸ”’ JWT authentication
Enter fullscreen mode Exit fullscreen mode

javascript

// API Structure
GET /api/seed-exchange/listings # List all listings
POST /api/seed-exchange/listings # Create listing
GET /api/seed-exchange/requests # List requests
POST /api/seed-exchange/requests # Create request
POST /api/seed-exchange/reviews # Create review

πŸ› οΈ Technology Stack
Component Technology Version
Frontend React + Vite 18.2.0 / 5.0.0
Maps Leaflet.js + React-Leaflet 1.9.4 / 4.2.1
Charts Recharts 2.8.0
Styling Tailwind CSS 3.4.0
Backend Node.js + Express 20.20.2 / 4.18.2
Database MongoDB + Mongoose 7.5.0
Authentication JWT 9.0.2
πŸ“Š Project Statistics
bash

πŸ“‹ BOUNTIES COMPLETED: 5
πŸ’° TOTAL REWARD: 1250 MYZ
⏱️ TIME: 4 hours
πŸ“ FILES CREATED: 45+
πŸ“ LINES OF CODE: 1500+

Repositories Involved
text

MyZubsterGateway/
β”œβ”€β”€ frontend/
β”‚ β”œβ”€β”€ dashboard-public/ # #8 - Public Dashboard
β”‚ β”œβ”€β”€ urban-garden-map/ # #1 - Garden Map
β”‚ β”œβ”€β”€ urban-garden-dashboard/ # #2 - Garden Dashboard
β”‚ β”œβ”€β”€ garden-products/ # #4 - Marketplace
β”‚ └── seed-exchange/ # #5 - Seed Exchange
β”œβ”€β”€ controllers/
β”‚ └── seedExchangeController.js
β”œβ”€β”€ models/
β”‚ β”œβ”€β”€ SeedListing.js
β”‚ β”œβ”€β”€ SeedRequest.js
β”‚ └── SeedReview.js
└── routes/
└── seedExchange.js

πŸš€ How to Get Started
bash

Clone the repository

git clone https://github.com/MyZubster-Ecosystem/MyZubsterGateway.git

Install dependencies

cd MyZubsterGateway
npm install

Start the server

node server.js

Start the dashboards

cd frontend/dashboard-public && npm run dev # #8
cd frontend/urban-garden-map && npm run dev # #1
cd frontend/urban-garden-dashboard && npm run dev # #2
cd frontend/garden-products && npm run dev # #4
cd frontend/seed-exchange && npm run dev # #5

🎯 Next Steps

Deploy to Render – Bring all dashboards online

Wallet Integration – Connect MYZ payments

User Testing – Community feedback

Documentation – Guides for users and developers
Enter fullscreen mode Exit fullscreen mode

πŸ’° The Economic Model
Stakeholder Share Purpose
Garden Owner 85% Compensation for work
MyZubster Platform 2% Maintenance & development
Bosco Community Fund 8% Ecosystem sustainability
Referrer 5% Network growth incentive
🀝 Contribute

MyZubster is open source and we're always looking for contributors:

Developers – Pick a bounty and earn MYZ

Garden Owners – Deploy sensors and earn

Community – Help with testing and feedback
Enter fullscreen mode Exit fullscreen mode

Start now: https://myzubstergateway-1.onrender.com/bounty
πŸ“Œ Credits

MyZubster Team – For the vision and support

Kasuki354 – 47 bounties, 12,000 MYZ

waterWang – 5 bounties, 1,250 MYZ

laurentketterle-hub – 5 bounties, 1,250 MYZ
Enter fullscreen mode Exit fullscreen mode

πŸš€ MyZubster is building the future of urban gardens and open source incentives. Join us!

Top comments (0)