Coder Social home page Coder Social logo

codefortulsa / snap-screener Goto Github PK

View Code? Open in Web Editor NEW
6.0 7.0 0.0 1.5 MB

Screener for SNAP. Built in partnership with Hunger Free Oklahaoma and TPS. Very special thanks to volunteers Travis Miller, Cody Walinciak, Kendall Wertz, and Chris Doe.

Home Page: https://snap-screener-ok.web.app/

HTML 2.45% CSS 0.36% TypeScript 97.19%
code-for-tulsa code-for-america civictechindex food-security social-safety-net snap

snap-screener's Introduction

Hunger Free Oklahoma

SNAP Screener

Find out if you are eligible for food assistance at Hunger Free Oklahoma.


The SNAP Screener is a single-page web application built with React and hosted on Firebase Hosting. Currently avaiable at snap-screener-ok.firebaseapp.com with final domain forthcoming. School contacts are managed with a Google Sheet available here. All other pertinent settings are available within src/lib/config.js—such as who recieves all email notifications with the variable NOTIFY_CC.

PLEASE NOTE: The spreadsheet uses real email addresses so submitting a form will, in fact, send emails out to all contacts listed for the selected school.


Partners


Technology


Development

To get started developing locally, clone the project. The from the root directory, run:

npm install
npm start

Requirements

  • node > v10

Task List

  • Front-end UI
  • Back-end hosting
  • Cloud function to determine eligibility and send mail
  • Establish mail service and template via Mailjet
  • Update NOTIFY_CC in src/lib/config.ts to reflect email address to receive all submissions
  • Add Google Analytics for tracking
  • Domain handling (to get site pointed from *.hungerfreeok.org)
  • Domain email validation (to get emails as sent from HFO)
  • Continus deployment via GitHub Actions (to redeploy cloud function + web app whenever commit is pushed to master branch)
  • Possibly use Google Places Autocomplete API for address lookup?
  • Possibly set up a hosted staging environment linked with a dev branch?
  • Possibly move NOTIFY_CC from hard-coded config file to google spreadsheet

snap-screener's People

Contributors

cdoe avatar chimchim237 avatar dependabot[bot] avatar kendallcorner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

snap-screener's Issues

Submit Button doesn't seem to work.

When going through the process on https://hungerfreeok.org/snap-screener/, choosing a school and then hitting the submit button does not seem to work as intended. The user should be getting a results screen about being eligible for SNAP, and the javascript should send three emails:

  1. an email to the user with their TPS contact.
  2. an email to Hunger Free OK that a message has been sent.
  3. an email to the TPS contact that a new family needs help.

Screenshot:
Screenshot 2020-02-20 16 28 38

404 from the php server

I am getting a 404 when I GET http://localhost:5000/api/form-submit with example data:

{
  "address": {
    "state": "OK",
    "street": "asdfads",
    "city": "asdfads",
    "zip": "74134"
  },
  "contact": {
    "contactMe": "yes",
    "firstName": "Test name",
    "contactPreference": "email",
    "email": "[email protected]"
  },
  "howManyChildrenUnder18": "2",
  "howManyAdults": "2",
  "howManyAdultsOver60": "0",
  "income": {
    "amount": "200",
    "period": "weekly"
  },
  "childAttendsSchool": "Dolores Huerta Elementary"
}

Probably related to #1

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.