mph-bali / green-village-project Goto Github PK
View Code? Open in Web Editor NEWPowering MPH recycling and composting facilities in Bali
License: MIT License
Powering MPH recycling and composting facilities in Bali
License: MIT License
The instance data / settings can be stored in the firebase realtime DB for simplicity.
To edit/change them we can use a single page with form fields for all props.
Sample of the setting data:
var settings = {
name: 'Facility 1',
village: 'Canggu',
importantVillageGuy: {
id: 'Tu4SFfDhBUgAwGsvfopc',
name: 'Guys Name'
},
houseTypes: [ //needed?
{ name: 'Villa', collectionFee: 20000 },
{ name: 'Local House', collectionFee: 1000 },
{ name: 'Business', collectionFee: 2500 }
],
materials: [
{ name: 'Material 1', pricePerKilo: 2000 },
{ name: 'Material 2', pricePerKilo: 3000 }
//...
],
trucks: [
{ name: 'Truck 1', plate: 'ABC123', model: 'Toyota Trucki' },
{ name: 'Truck 2', plate: 'DEF456', model: 'Toyota Trucki' }
],
banjars: [
{
name: 'Banjar Name',
pickupTimes: {
mon: '6am-2pm',
tue: '6am-2pm'
//...
}
}
]
}
<mph-icon size="20px" color="primary">menu</mph-icon>
)For the public facing interface, we'll use the Vue wrapper for Chart.js
We can make simple, reusable graphs with multilple data sets, just need to add a function or two to have it auto-refresh the data being passed to it.
Library for Wrapper: https://github.com/apertureless/vue-chartjs
Documentation for Chartjs: http://www.chartjs.org/docs/latest/getting-started/usage.html
Since all of the operations are cash-based, SMS can be used to verify that the transaction happened.
Why?
A big issue is that numbers are being fudged at the moment. There is nothing stopping people from fudging app inputs. These measures are to ensure the integrity of the data so that it can have valid use with government bodies etc. especially when more facilities are added.
$t("VIEW.STRING")
For the public facing part where charts are display I propose to work with pre-aggregated data instead of querying the database for everything.
Therefore I would propose the following approach:
This should increase performance (thanks to CDN), reduce server load and make the security rules simpler.
Mapping routes of pickups for full transparency with petrol expenses and route optimization based on most up-to-date customer list.
Suggestions:
To verify the work hours, a fingerprint scanner will be in each of the facilities.
Why?
Again, this is a number that is often fudged. So syncing fingerprint hardware to the app will help automate and validate worker hours and ensure the integrity of the data for later use.
Form for new clients to apply to get their rubbish collected
https://app.zeplin.io/project/5a976d7c3ccf224b6dbd223b/screen/5ab10a06483feb9d19f9618b
Reduce vendor.js (currently 1MB+) by only importing the necessary vuetify components according to guide
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.