- Make sure you have Node.js and npm installed on your machine. You can check if they are installed by running the following commands in your terminal:
node -v
npm -v-
Clone or download the repository to your local machine.
-
Navigate to the project directory and run the following command to install the necessary dependencies:
npm install-
Create a new app and bot on the Slack API website and obtain a
SLACK_SIGNING_SECRETandSLACK_BOT_TOKEN. -
In the project directory, create a file called
.envand set the following environment variables:
SLACK_BOT_TOKEN=
SLACK_SIGNING_SECRET=- To start the app, run the following command:
npm run local