- Prerequisites
- Installation
- Configuration
- Slack app permissions
- Running locally
- Building for production
- API documentation
- Node.js 14.x
- Yarn >=1.22.4 <2
Clone the repo
git clone https://github.com/dothemath-se/dothemath-app-backend.git
Install dependencies
yarn
Compile, start the local web server on port 3000, and recompile on changes
yarn dev
Compile TypeScript files into dist/ folder
yarn build
These environment variables need to be set for the user running the code. (This applies on a server as well as locally.)
- SLACK_SIGNING_SECRET
- SLACK_BOT_TOKEN
- SLACK_USER_TOKEN
The values can be found on the config pages for the slack app.
These permissions need to be enabled on your Slack app:
- channels:history
- chat:write
- chat:write.customize
- users:read
- files:write