DEV Community

Daniel Ioni
Daniel Ioni

Posted on

πŸš— MyZubster: 6 New Features in 24 Hours

πŸš— MyZubster: 6 New Features in 24 Hours

From urban garden dashboards to car refueling with MYZ/XMR
The Story

Today we completed 6 fundamental bounties for the MyZubster ecosystem, taking the project from "prototype" to "LIVE infrastructure" with features spanning from urban gardens to connected cars.

In just 24 hours, we transformed the project with:

5 interactive dashboards for urban gardens

1 complete system for cars with MYZ/XMR refueling

4 complete REST APIs

2 functional marketplaces

1 P2P exchange system
Enter fullscreen mode Exit fullscreen mode

πŸš— The New Feature: Car Refueling System with MYZ/XMR

The latest implementation is a complete system for cars that allows refueling with MYZ or XMR.
Features

πŸš— Car registration and management

β›½ Refueling with MYZ/XMR

πŸ€– Automatic refueling when level drops below threshold

πŸ“Š Consumption and spending statistics

πŸ“ Gas station map

πŸ’° Real-time price updates
Enter fullscreen mode Exit fullscreen mode

Refueling Example
bash

Refuel 15 liters with MYZ

curl -X POST http://localhost:10000/api/auto/rifornisci \
-H "Content-Type: application/json" \
-d '{
"autoId": "auto_123",
"stazioneId": "stazione_456",
"quantita": 15,
"valuta": "MYZ"
}'

Response

{
"success": true,
"rifornimento": {
"auto": "AB123CD",
"quantita": 15,
"costo": "27.00",
"valuta": "MYZ",
"transactionId": "ece328509be83420ac40546b8100332b",
"stazione": "Stazione MyZubster",
"livelloCarburante": 35,
"autonomia": "525 km"
}
}

API Endpoints
javascript

POST /api/auto/registra // Register car
GET /api/auto // List cars
GET /api/auto/:id // Car details
PUT /api/auto/:id // Update car
DELETE /api/auto/:id // Delete car
POST /api/auto/rifornisci // Refuel
POST /api/auto/:id/auto-refill // Auto-refuel
GET /api/auto/:id/stats // Statistics
GET /api/stazioni // List stations
PUT /api/stazioni/:id/prezzi // Update prices

🌱 The 5 Urban Garden Dashboards
1️⃣ #8 - Public Dashboard

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

2️⃣ #1 - Urban Garden Map

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

3️⃣ #2 - Garden Dashboard

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

4️⃣ #4 - Garden Products Marketplace

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

5️⃣ #5 - Seed Exchange

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

πŸ› οΈ 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: 6
πŸ’° TOTAL REWARD: 1500 MYZ
⏱️ TIME: 4 hours
πŸ“ FILES CREATED: 55+
πŸ“ LINES OF CODE: 2000+

Repository Structure
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/
β”‚ β”œβ”€β”€ autoController.js # Car logic
β”‚ β”œβ”€β”€ stazioneController.js # Station logic
β”‚ └── seedExchangeController.js
β”œβ”€β”€ models/
β”‚ β”œβ”€β”€ Auto.js # Car model
β”‚ β”œβ”€β”€ Stazione.js # Station model
β”‚ β”œβ”€β”€ SeedListing.js
β”‚ β”œβ”€β”€ SeedRequest.js
β”‚ └── SeedReview.js
└── routes/
β”œβ”€β”€ auto.js
β”œβ”€β”€ stazione.js
└── seedExchange.js

πŸ’° The Economic Model
Stakeholder Share Purpose
Garden/Car Owner 85% Compensation for work
MyZubster Platform 2% Maintenance & development
Bosco Community Fund 8% Ecosystem sustainability
Referrer 5% Network growth incentive
πŸš€ 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

🀝 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

Car Owners – Connect your car 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

jihadMo – 1 bounty, 700 MYZ

guoyunfeng – 1 bounty, 250 MYZ
Enter fullscreen mode Exit fullscreen mode

πŸ”— Useful Links

GitHub: MyZubster-Ecosystem

Gateway: https://myzubstergateway-1.onrender.com

Bounty Board: https://myzubstergateway-1.onrender.com/bounty
Enter fullscreen mode Exit fullscreen mode

πŸš€ MyZubster is building the future of urban gardens, connected cars, and open source incentives. Join us!
πŸ“ How to Publish
bash

curl -X POST https://dev.to/api/articles \
-H "Content-Type: application/json" \
-H "api-key: YOUR_DEV_API_KEY" \
-d '{
"article": {
"title": "πŸš— MyZubster: 6 New Features in 24 Hours",
"published": true,
"body_markdown": "[PASTE THE CONTENT HERE]",
"tags": ["opensource", "web3", "gardening", "react", "javascript", "automotive"]
}
}'

Top comments (0)