An open API service indexing awesome lists of open source software.

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

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`.