Skip to content

mjacobus/field-service

Repository files navigation

Field Service

My personal field service helper

Rails Unit Tests Scrutinizer Code Quality Issue Count BCH compliance Coverage Status

Notes to self

Installing

Copy .env.example to .env and change accordingly.

./bin/setup

Running

yarn run start

Importing/exporting

rake csv:householders:import     # will import CSVs inside csv/to_import prefixed with householders_
rake csv:householders:export_all # will export to csv/exports

CSV columns:

  • territory_name - required
  • street_name - required
  • house_number - required
  • name - required
  • show - (yes|no) required
  • uuid
  • updated_at

React Frontend

The current structure of this project

  • actions
  • containers/pages/
  • helpers - utils that may be business dependent
  • seletors - God knows ;-)
  • translations
  • utils - utils that are business agnostic
  • views/components/ - components that are business agnostic
  • views/pages/shared/ - components that are business dependent
  • views/pages/{resource}/{action} - rails like naming for views - I.E. territories/show.js

Resources