Git Product home page Git Product logo

alexa-trends's Introduction

Welcome to the Alexa Twitter Trends Skill

This is an Alexa skill which can be used to get you the latest given a city name in the United States.

This skill uses the Twitter API to get the latest trends for a place. It also relies on the PY-WOEID API to retrieve the Where on Earth IDentifier for the query city name.

This project is made possible by using the following:

Code Structure

  • README.md - this file
  • buildspec.yml - This YAML file is used by AWS CodeBuild to create an artifact that can be used to deploy to AWS Lambda through CloudFormation.
  • index.js - This file contains the AWS Lambda code used to interact with Alexa.
  • twitter-wrapper.js - This file contains the code to do GET trends/place and return the top 5 trends given woeid.
  • events.json - This file contains a sample of list of events that can be use to do local development using sam-local
  • package.json - This file is used by NPM to package your Alexa skill.
  • template.yml - This YAML file is used by AWS CloudFormation to update AWS Lambda and manage any additional AWS resources.

How to deploy your serverless app?

Reference: http://docs.aws.amazon.com/lambda/latest/dg/serverless-deploy-wt.html#serverless-deploy

  1. Create your code bucket:
$ S3_BUCKET=bucket-name # You can give ${awsAccountId}-code-bucket
$ aws s3 mb s3://$S3_BUCKET --region us-east-1
  1. Build and Package your application:
$ npm i && aws cloudformation package --template template.yml --s3-bucket $S3_BUCKET --output-template template-export.yml
  1. Deploy your packaged application:
aws cloudformation deploy --template-file ./template-export.yml --stack-name new-alexa-trends --capabilities CAPABILITY_IAM --parameter-overrides param1=value1 param2=value2 ...

These parameters will be the environment variables specified in template.yml

alexa-trends's People

Contributors

akkaash avatar

Watchers

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