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

Purpose: To automate updates to the Members Airtable document with info pulled from Slack's API

License

Notifications You must be signed in to change notification settings

ProgressiveCoders/prog-members

Repository files navigation

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 [email protected]: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.

About

Purpose: To automate updates to the Members Airtable document with info pulled from Slack's API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published