Giter VIP home page Giter VIP logo

disasterresourcetracker's Introduction

DisasterResourceTracker

Specs for the DisasterResourceTracker for the Miami Day of Civic Hacking, which is about reporting the general current availability of arbitrary resources at locations.

Resources

Features

  • Faceted search including location with map and table view
  • Saved searches + notifications (e.g. when availability changes of plywood near me)
  • Separate permissions for Location CRUD and AvailabilityReport CRUD
  • Simplified Text DSL (over sms or even just super basic web app)
    • (resource, location) -> [result]
    • (resultID) -> location that iMessage can link to maps (probably just address)

Criteria for ideal resources to track

  • Consumable
  • Replenish-able
  • Broad demand and appeal mid-crisis(e.g. water/plywood is universal and people care enough to report)
  • Prone to scarcity ("the first things to go")
  • Generic in type (e.g. water not Dasani)

Generalizing that, universally demanded commodities seem like a good fit. Things like service and needs can be modeled but it's not ideal (e.g. a "resource" of people needing something at a location)

Models

Location

Field Type Description
Name string Name of the Resource Host (e.g. store name, service name, etc)
URL string An optional external URL for more info from the Resource Host
Location geo The lat/long cooridinates of the resource
ExternalID string? An optional external system id for integrtation with existing systems
ExternalSystem string? An optional name of an external system
ResourceType string Type of resource from a finite list, e.g. water, gas, plywood, hugs
ResourceAvailability float 0-1 quantity indicating current availability, e.g. 0, 0.5, and 1 for a red/yellow/green scale or straight slider (calculated in light of AvailabilityReports)

Note ResourceType and ResourceAvailability could be in a Resources array to support multiple resources per location without fully denormalizing

AvailabilityReport

Field Type Description
User ID User doing Reporting
Timestamp datetime Time of report
LocationID ID Location of Resource
ResourceType string Resource being reported about
ResourceAvailabilty float New availability being reported
Image string URL of uploaded image
Comments [{message:string, user:ID}] Discussion about report

Tech Stack

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.