Skip to content

Instantly share code, notes, and snippets.

@pmbaumgartner
Last active December 15, 2015 01:49
Show Gist options
  • Save pmbaumgartner/330d6c48dbdd78315702 to your computer and use it in GitHub Desktop.
Save pmbaumgartner/330d6c48dbdd78315702 to your computer and use it in GitHub Desktop.
creating a simple hello world app for a Slack slash command.
from flask import Flask
import os
app = Flask(__name__)
@app.route("/hello", methods=['POST'])
def hello():
return "Hello World!"
if __name__ == '__main__':
port = int(os.environ.get('PORT', 5000))
app.run(host='0.0.0.0', port=port, debug=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment