Skip to content

Latest commit

 

History

History
60 lines (38 loc) · 1.47 KB

DEV.md

File metadata and controls

60 lines (38 loc) · 1.47 KB

Development Environment

You may want to watch Your First Slack Bot Service video first.

Prerequisites

Ensure that you can build the project and run tests. You will need these.

bundle install
bundle exec rake

Slack Team

Create a Slack team here.

Slack App

Create a test app here. This gives you a client ID and a client secret.

Under Features/OAuth & Permissions, configure the redirect URL to http://localhost:5000.

Add the following Permission Scope.

  • Add a bot user with the username @bot.

Slack Keys

Create a .env file.

SLACK_CLIENT_ID=slack_client_id
SLACK_CLIENT_SECRET=slack_client_secret

Stripe Keys

If you want to test upgrading, premium and payment-related functions you need a Stripe account and test keys. Add to .env file.

STRIPE_API_PUBLISHABLE_KEY=pk_test_key
STRIPE_API_KEY=sk_test_key

Start the Bot

$ foreman start

08:54:07 web.1  | started with pid 32503
08:54:08 web.1  | I, [2017-08-04T08:54:08.138999 #32503]  INFO -- : listening on addr=0.0.0.0:5000 fd=11

Navigate to localhost:5000.