SNAP Screener
- Hunger Free Oklahoma
- Tulsa Public Schools
- Oklahoma Department of Human Services
- Spark Collaborative
- Underdog Systems
Operation
Envrionment
PHP API Application
APP_ENV
: Application environment. (example:development
orproduction
)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 deliveryAPP_MAIL_PORT
: required Host server port for SMTP deliveryAPP_MAIL_USERNAME
: Username for SMTP authenticationAPP_MAIL_PASSWORD
: Password for SMTP authenticationAPP_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