$ 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 Buildingbutton. 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 Commandsand use theCreate New Commandoption to create them. Remember to enter the appropriate server address. Replace thethanksy.serverplaceholder with the address of the application you deployed in the previous step.
Click Features -> Interactive Componentsand turn them on.
- Fill in the
Request URLused to send slack reactions. Replace thethanksy.serverplaceholder 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_TOKENcan be found in theBasic Information -> App Credentialssection. It is calledVerification Token.SLACK_API_TOKENis located in theOAuth & Permissions -> OAuth Tokens & Redirect URLssection.AUTH_TOKENis 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








