Steps to building movie info app
-
Setting up Ngrok for local testing
- Download zip file and extract it from https://ngrok.com/
- Extract it to /usr/local/bin
- tunnel your server by running - ngrok http {PORT}
-
Create TMDB account to access TMDB API and generate API key from https://www.themoviedb.org/
-
Follow instruction to set up starter python bolt project - https://slack.dev/bolt-python/tutorial/getting-started
-
Build Slack UI blocks using BlockKit Builder
Run App
- Make sure ngrok is running
- Copy URL provided in ngrok execution terminal to Interactive & Shortcuts (Request URL and Select Menus) and Event Subscription (Request URL)
- Make sure Key and Token are available in in environment. Update them in start.sh file
- export SLACK_BOT_TOKEN={xoxb-TOKEN}
- export SLACK_SIGNING_SECRET={SECRET}
- export MOVIE_API_KEY={API_KEY}
- Make sure python environment is available (If not available run python -m venv .venv in root of project[/MovieInfo])
- Install dependent packages by running -> pip install -r requirements.txt
- run ./start.sh