This repository contains a Ruby on Rails application. Follow the steps below to download the repository, start the server, and set up the environment variable SLACK_API_TOKEN.
To download the repository, run the following command:
git clone https://github.com/your-username/your-repo.git
Make sure to replace your-username and your-repo with your own GitHub username and repository name.
To start the server, run the following commands:
bundle install
rails server
This will install all the necessary gems and start the Rails server on port 3000. You can access the application by navigating to http://localhost:3000 in your web browser.
To set the SLACK_API_TOKEN environment variable, follow these steps:
-
Create a .env file in the root directory of the application.
-
Add the following line to the .env file:
SLACK_API_TOKEN=your-token-here
Replace your-token-here with your actual Slack API token.
-
Save the .env file.
Note: Make sure not to commit the .env file to version control, as it contains sensitive information.
To deploy the application to Heroku, follow these steps:
-
Create a new Heroku app:
heroku create
-
Set the SLACK_API_TOKEN environment variable on Heroku:
heroku config:set SLACK_API_TOKEN=your-token-here
Replace your-token-here with your actual Slack API token.
-
Push the code to Heroku:
git push heroku main
-
Migrate the database:
heroku run rails db:migrate
-
Open the application:
heroku open
This will open the application in your web browser.