Skip to content

oaxacarb/oaxacarb-slack

Repository files navigation

Code Climate Dependency Status Circle CI Coverage Status

Oaxaca.rb Slack

Official website of Oaxaca.rb.

https://oaxacarb.herokuapp.com

http://oaxacarb.org/

Getting Started

Dependencies

Make sure you have installed bundler and PostgreSQL.

# if you need to install PostgreSQL on Mac with Homebrew

brew install postgresql

Setup

Clone this repo and configure database.

If you already have a local PostgreSQL superuser, make .env file on project root and configure like this:

PG_USER=mysuperuser
PG_PASSWORD=mypassword
SLACK_API_TOKEN=your-slack-api-token

You can get your Slack API token at https://api.slack.com/web#authentication

If you don't have a superuser yet, create oaxacarb user, with password "oaxacarb"

createuser -P -s -e oaxacarb

Then run:

bundle
bundle exec rake db:create
bundle exec rake db:migrate
bundle exec rake slack:update
bundle exec rails s