As of April 11, 2018 Facebook has restricted access to the "Page Events" portion of their Graph API. Applications will not be granted access until an audit has been completed on the application. App submissions are not yet open and as such Brew O'Clock will not be able to add new events until permission has been granted.
Brew O'Clock is an application built to better connect users to the vibrant brewery culture of Colorado. This application uses the Facebook Graph API to collect new events from over 300 Colorado breweries every hour. Users are able to add and remove these events to and from their personal dashboard to keep track of events they are interested in attending.
Follow these instructions to setup and serve Brew O'Clock locally.
Clone & Setup environment:
#terminal
git clone https://github.com/Ryanspink1/brew_master.git
cd brew_master
bundle exec install
Once bundled, the FACEBOOK_TOKEN environment variable will need to be set. Please retrieve your personal Facebook token from the Facebook Graph API Explorer (Facebook account required).
Set Token:
# config/application.yml
FACEBOOK_TOKEN: #your_token
With the token configured, the database can now be created and populated via rake tasks. In your terminal:
#terminal
rake db:create
rake db:migrate
And to populate with breweries and events:
#terminal
rake create_breweries
rake get_new_events
Both of the previous rake tasks will output the status of their brewery and event creation in the terminal and notify upon completion.
Test suite may be run in the terminal:
#terminal
rspec
Ryan Spink (2017 - Current)
This project is licensed under the MIT License.