Giter VIP home page Giter VIP logo

alexa-who-are-my-congressmen's Introduction

Alexa, who are my Congressmen?

An Alexa skill for finding information on your members of Congress.

CircleCI Coverage Status Dependency Status Dev Dependency Status Known Vulnerabilities

Requirements

Running Tests

This project includes Mocha and Chai for testing service data parsing. If you add to this, write more tests. And run them:

$ npm test

Running Locally

As far as I know, you can't connect to an Alexa Device locally, but there is a way to run a development server with a test harness using Alexa App Server.

Open another terminal window and cd into the parent directory where you can clone the test harness:

$ cd ../
$ git clone https://github.com/matt-kruse/alexa-app-server
$ cd alexa-app-server && npm i 

Then, in this directory's terminal, create a sim link in the alexa-app-server test harness to this project:

$ ln -s "$(pwd)" "../alexa-app-server/examples/apps/${PWD##*/}"

Then run a watch to transpile the alexa app source code from ES6 to ES5

$ npm run local

Return to the terminal/directory in which you installed alexa-app-server and run the following:

cd examples && node server

Then visit the test harness at http://localhost:8000/alexa-who-are-my-congressmen

###Compiling For Upload Make sure the bin directory has executable permissions:

$ chmod +x ./bin/build.sh

If this throws an error, trying using sudo:

$ sudo chmod +x .bin/build.sh

Transpile the ES6 and zip up the relevant files for upload by running:

$ npm run build

This should output files.zip to the project root for upload to the AWS Lambda Console.

Contributing

All code is transpiled from ES6 with Babel. The lint config is based on AirBnB's eslint. To lint the code run:

$ npm run lint

alexa-who-are-my-congressmen's People

Contributors

chrisdevwords avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

juanprado

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.