Skip to content
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.

Latest commit

 

History

History
60 lines (34 loc) · 1.91 KB

README.md

File metadata and controls

60 lines (34 loc) · 1.91 KB

Prog::Members

Code Climate Build Status

Usage

Copy .env.example to .env and ensure you update it with real credentials.

Next run bundle exec rake test to ensure all systems are go.

Finally, bin/sync oughta do something fun with slack and airtable.

There's also a rake task that will simply run bin/sync:

rake prog:members:sync

Testing

Integration tests essentially check that the tokens for Slack and for Airtable are set and are valid.

Unit tests run against mocks and don't touch either API.

bundle exec rake test

Dependencies

Development

First Goal: use the slack gem to get member lists and info, then use the airtable gem (airrecord) to update the Airtable document with latest info. :check:

Next Goals: clean it up; automate build; release a rubygem(?); have fun :)

Deployment

Heroku:

git clone git@github.com:ProgressiveCoders/prog-members.git
heroku create
git push heroku master
heroku ps:scale web=1
heroku addons:create scheduler:standard

Next run heroku addons:open scheduler to configure the scheduler addon to run the following task as often as you like:

rake prog:members:sync

And set environment variables:

heroku config:set SLACK_API_TOKEN=xoxp-the-real-one \
                  AIRTABLE_KEY=keyTherealone        \
                  AIRTABLE_APP=appSomeRealOne       \
                  AIRTABLE_BASE="Real Table Name"   \

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/ProgressiveCoders/prog-members.