Giter Site home page Giter Site logo

green-village-project's People

Contributors

dancre avatar ejohnst2 avatar inouridder avatar jollybrackets avatar mediashane avatar nicksarafa avatar piggydoughnut avatar roma219 avatar sovesove avatar youaresofunny avatar zackperdue avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

green-village-project's Issues

Create Admin/Settings Page (optional)

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'
        //...
      }
    }
  ]
}
  • Create new top-level route /admin
  • Add inputs and tables (inline edit) for all the props
  • Add security rule (read if user.role.manager, write: if user.role.admin)

Change Icons to SVGs from Zeplin

  • Get all icons from Zeplin project and include them in the build
  • Create a new Icon element/component for all the icons (e.g. <mph-icon size="20px" color="primary">menu</mph-icon>)
  • Remove Fontawesome and Google Icon Font from project

Add phone auth

  • Enable Phone Auth on the project (see how)
  • Add person Collection to Firestore
  • Add Login & Confirmation components
  • Hide Manager components if no manager is looged in

Security Rules & Validation

  • Settings (firebase realtime db)
  • Delivery
  • Person
  • WorkedHours
  • Stock
  • Expense
  • Sale
  • Fee
  • Banjar
  • Material
  • MaterialType
  • houseType

Optional Feature: SMS Auth for Buyers

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.

i18n

  • Replace all Strings with $t("VIEW.STRING")
  • Have someone translate all strings
  • Add a language picker

Cloud function - Public Facing Data (proposal)

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:

  1. Write firebase-function with time trigger (e.g. daily) to run aggregate queries
  2. Store the output/data in a daily-data-.json file on firebase storage
  3. Pull that file in the public facing app

This should increase performance (thanks to CDN), reduce server load and make the security rules simpler.

Firebase triggers

  • check if triggers are needed
  • triggers on update for "duplicate" data

Roadmap Feature: Route Mapping

Mapping routes of pickups for full transparency with petrol expenses and route optimization based on most up-to-date customer list.

  • Customer address is added whenever Customer.new
  • Address of customers used to create pickup routes

Suggestions:

  • GoogleMaps API

Roadmap Feature: Fingerprint Scanner App Sync

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.

Vuex Modules

  • Settings (firebase realtime db)
  • Delivery (partially done, mutations missing)
  • Person
  • WorkedHours
  • Stock
  • Expense
  • Sale
  • Fee

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.