This is a small app for getting clients from Basecamp's active projects and putting them into Delighted survey service.
If you familiar with Ruby:
- Clone repo to the local machine:
$ git clone git@github.com:fs/basecamp-delighted.git
. - Change directory:
$ cd basecamp-delighted
. - Resolve dependencies:
$ bundle install
. - Create
.env
file and populate it with key-value pairs (example .env file) - Run app:
$ APP_ENV=development bin/main
. - Check Delighted service.
Otherwise you can use Heroku as platform for running this app:
- Clone repo to the local machine:
$ git clone git@github.com:fs/basecamp-delighted.git
. - Change directory:
$ cd basecamp-delighted
. - Create account on Heroku.
- Download and install the Heroku Toolbet.
- If you haven't already, log in to your Heroku account and follow the prompts to create a new SSH public key:
$ heroku login
. - Create new app:
$ heroku apps:create app_name
. You can omitapp_name
and Heroku creates app with default name. - Deploy your app:
$ git push heroku master
. - Populate config variables on
settings
tab as it's done in the example .env file. - Run app:
$ heroku run bin/main --app app_name
. - Check Delighted service.
# .env
# Basecamp credentials
BC_USER=user@example.com
BC_PASSWORD=user_pass
BC_APP="your_app_name (user@example.com)"
BC_ACCOUNT_ID=9999999
# Delighted credentials
DELIGHTED_API_KEY=5SLQLx5R47peQq2F87GbP6BskEuCMDWD
DELIGHTED_DELAY=3600
BC_USER/BC_PASSWORD
- credentials of Basecamp's user that have access to projects.BC_APP
- point here your email. Reason described here.BC_ACCOUNT_ID
- Basecamp account's id. When you logged in Basecamp, take a look at URL, it looks like: https://basecamp.com/1787128, digits after slash is account id.DELIGHTED_API_KEY
- API key can be found on account API pageDELIGHTED_DELAY
- delay in seconds before surveys will be sent to just added peoples.