Git Product home page Git Product logo

chalice-slack-stock's Introduction

chalice-slack-stock

This repo uses SlackStocks - a slack slash command that gives you pricing information on a stock ticker, together with Chalice - a Python Serverless Microframework for AWS.

Unlike Zappa, Chalice doesn't use WSGI to serve the requests.

Usage

Currently there's no simple way to initialize an existing chalice project, so follow the next steps:

Set up you AWS credentials

Create virtual env

mkvirtualenv my-chalice

Install Chalice

pip install chalice

Create a new chalice project

chalice new-project chalice-slack-stock
cd chalice-slack-stock

Overwrite app.py and requirements.txt with those of this repository

Install requirements

pip install -r requirements.txt

Deploy

chalice deploy

In your slack team settings, add a Slash Command Configuration Add a custom slash command configuration

Make sure your settings are like so:

  1. Add the command name "/stock"
  2. Add in the URL like so "http:///stock
  3. Set the Method type to GET
  4. If you've configured it correctly then you should be good to go! I've added a setup screenshot below as well

Add a custom slash command configuration

chalice-slack-stock's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.