https://github.com/stlk/slack-lunch
https://github.com/stlk/slack-lunch
flask python python3 slack-commands zeit-now zomato
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/stlk/slack-lunch
- Owner: stlk
- Created: 2019-04-27T12:24:01.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-29T10:48:40.000Z (about 7 years ago)
- Last Synced: 2025-01-26T08:23:30.467Z (over 1 year ago)
- Topics: flask, python, python3, slack-commands, zeit-now, zomato
- Language: Python
- Size: 14.6 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Slack lunch menu slash command
Uses Zomato and OpenCage Geocoder APIs. Build using Flask, deployed to now.sh.
### Development
#### Using now dev command
```bash
now dev
```
#### Using Flask dev
Configure your `.env` file and set `FLASK_APP` to the file you want to run.
```bash
pipenv install
pipenv run dev
```
### Tests
```bash
pipenv run pytest
```
### Deployment
```bash
# Add API keys
now secrets add ZOMATO_API_KEY your-secret-key
now secrets add OPENCAGEDATA_API_KEY your-secret-key
# Deploy
now
```
### Usage
Configure your [Slash Command](https://api.slack.com/slash-commands) to use `/slash` endpoint. The app uses `text` and `response_url`.