$ heroku create
$ git push heroku master
$ heroku buildpacks:set heroku/ruby
$ heroku buildpacks:set heroku/nodejs
$ heroku run rake db:migrate
$ heroku open
Alternatively, you can deploy your own copy of the app using the web-based flow:
- Visit the Slack API vebsite and click the
Start Building
button. Then you will see the following popup. Fill in the name of the application (We recommend nameThanksy
) and select your workspace.
- The next step is to configure two commands. Click
Features -> Slash Commands
and use theCreate New Command
option to create them. Remember to enter the appropriate server address. Replace thethanksy.server
placeholder with the address of the application you deployed in the previous step.
Click Features -> Interactive Components
and turn them on.
- Fill in the
Request URL
used to send slack reactions. Replace thethanksy.server
placeholder with the address of the application you deployed in the previous step.
- At this step, specify a scopes. Thanksy saves some data to minimize the number of requests to the
Slack API
. To fetch this data, we require the following permissions:
- If the scopes have been defined you can install you app.
- Last but not least. You must add three env variables in the options of your project on heroku.
SLACK_TOKEN
can be found in theBasic Information -> App Credentials
section. It is calledVerification Token
.SLACK_API_TOKEN
is located in theOAuth & Permissions -> OAuth Tokens & Redirect URLs
section.AUTH_TOKEN
is generated by you. It is simple method of authorization between frontend app and thanksy backend.
- Enjoy:)
In general, we follow the "fork-and-pull" Git workflow.
- Fork the repo on GitHub
- Clone the project to your own machine
- Commit changes to your own branch
- Push your work back up to your fork
- Submit a Pull request so that we can review your changes
NOTE: Be sure to merge the latest from "upstream" before making a pull request!
ruby 2.6.1
If you don't have PostgreSQL
locally, you can start a Docker
container with following command:
./scripts/run_postgres.sh
cp .env.example .env
Then fill missing options in the .env
file.
bundle install
rake db:recreate
rake db:migrate
rails s
rspec