travismiller / snap-screener

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SNAP Screener

Operation

Envrionment

PHP API Application

  • APP_ENV: Application environment. (example: development or production)
    • development used for permissive CORS headers.
  • APP_NOTIFY_FROM: required (example: "SNAP Screener (no-reply)" <no-reply@hungerfreeok.org>)
  • APP_NOTIFY_CC: required (example: "Jane Doe" <jane.doe@hungerfreeok.org>)
  • APP_MAIL_HOST: required Host server for SMTP delivery
  • APP_MAIL_PORT: required Host server port for SMTP delivery
  • APP_MAIL_USERNAME: Username for SMTP authentication
  • APP_MAIL_PASSWORD: Password for SMTP authentication
  • APP_MAIL_SECURE: Security setting (example: tls)
    • tls used by Heroku/Mailtrap.

React APP

  • REACT_APP_API_FORM_SUBMIT: required API URL for form submission. (example: /api/form-submit)

Development

# web/.env
APP_ENV=development
APP_MAIL_HOST=mailhog
APP_MAIL_PORT=1025
APP_NOTIFY_FROM='"SNAP Screener (no-reply)" <no-reply@hungerfreeok.org>'
APP_NOTIFY_CC='"Jane Doe" <jane.doe@hungerfreeok.org>'
# web/api/.env
REACT_APP_API_FORM_SUBMIT='http://localhost:5000/api/form-submit'
$ docker-compose up -d
$ cd web && yarn start

Generate Contacts

Edit web/data/contacts.csv

$ cd web
$ yarn install
$ node scripts/generate-contacts.js

Software

Requirements

  • node v10.16.3
  • yarn

Primary Dependencies

About


Languages

Language:CSS 89.4%Language:JavaScript 7.9%Language:PHP 2.0%Language:Dockerfile 0.4%Language:HTML 0.3%Language:Makefile 0.1%Language:Shell 0.0%