Name: comida
Owner: NPR visuals team
Description: Food options near NPR HQ - Using Slack Custom Commands & AWS API Gateway & AWS Lambda
Created: 2017-02-22 17:21:41.0
Updated: 2017-02-22 18:20:57.0
Pushed: 2017-02-22 22:42:13.0
Homepage: null
Size: 7
Language: Python
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Hungry? comida
uses a combination of slack custom command & aws API gateway & aws lambda functions to scrape the real time data at http://foodtruckfiesta.com/ and send it back to you.
The following things are assumed to be true in this documentation.
For more details on the technology stack used with the app-template, see our development environment blog post.
The project contains the following folders and important files:
dispatcher
– Where are dispatcher lambda function code livesworker
– Where the worker lambda function code livestest
– local tests to check that our scraper works locallydata
– Data files, such as those used to generate HTML.fabfile.py
– Fabric commands for automating setup and deploymentrequirements.txt
– Python requirements.To bootstrap the project:
omida
rtualenv comida
install -r requirements.txt
Review the code for your lambda function, include all the required libraries in code/requirements.txt
Create a function in your AWS lambda environment.
Then run:
deploy:FUNCTION_NAME
Where FUNCTION_NAME
is the name of the created lambda function