Skip to content
This repository has been archived by the owner on Jan 6, 2020. It is now read-only.
/ slashmovie Public archive

A slash command for Slack to lookup movie information, using claudia-bot-builder

Notifications You must be signed in to change notification settings

chiefy/slashmovie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slashmovie

Use a Slack slash command to find movie information!

slashmovie

Slashmovie is a project that leverages claudiaJS and claudia-bot-builder to build and deploy to AWS Lambda and AWS API Gateway for a cheap / low-cost hosting solution.

Prereqs

If you would like to deploy this yourself, you will need the following:

  • A valid AWS account, with credentials that allow for AWS Lambda, AWS API Gateway and s3 access.
  • The Movie Database API key (see-below)
  • Slack slash command token
  • GNU Make
  • jq
  • npm

TMDB API Key

In order to deploy, you will need a The Movie DB API key for looking up movie data.

To set your TMDB key:

$ export TMDB_API_KEY=aflkj02e2elfkmsd092lk

or use it as a parameter when using make:

$ make create TMDB_API_KEY=aflkj02e2elfkmsd092lk

Deployment

To create the initial deploy:

$ make create

To update project with your own Slack API token:

$ make update-slack

To redeploy:

$ make update

To destroy all associated AWS resources (be careful!)

$ make destroy

Testing

I've included a few 'smoke' tests to make sure things work with mocked out API responses, but testing in AWS Lambda is currently hard. This project uses the AVA test runner along with XO for linting.

$ npm run test

About

A slash command for Slack to lookup movie information, using claudia-bot-builder

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published