/node-pco

Planning Center Online tool written in Node.JS

Primary LanguageJavaScript

node-pco

Planning Center Online reporting tool.

Install

  1. git clone
  2. npm i

Configuration

Environment variables. Create an .env file in development environment.

  • OAUTH_CALLBACK_URL
  • OAUTH_CONSUMER_KEY
  • OAUTH_CONSUMER_SECRET
  • PAT_APP_ID - Person Access Token App Id
  • PAT_SECRET - Person Access Token Secret
  • NODE_ENVdevelopment / production
  • MAILGUN_API_KEY
  • MAILGUN_DOMAIN
  • EXPORT_FILE – Make email.js export a file instead

Email

Send emails based on the contents of emails database table.

  • Development: npm run dev:email
  • Production: npm run email

/sunday

Query parameters:

  • {Date} date E.g. date=2016-07-31
  • {int[]} serviceType E.g. serviceType=564544&serviceType=564546
  • {string[]} categoryName E.g. categoryName=TV%2FMedia
  • {string[]} excludePosition E.g. excludePosition=camera
  • {string[]} categoryPosition List of additional categories/position combinations to include. E.g. categoryPosition=Worship%20Vocals|Lyrics