Giter Club home page Giter Club logo

maestro's Introduction

Maestro

Jarvis, but for Elevent. Easily add Slack commands powered by AWS API Gateway and Lambda.

Architecture

Maestro is built on top of Claudia.js, which means you'll have to become friends with Node 4.something. Read more about Claudia.js here.

The short of it is that at deploy time,

  • CoffeeScript compiles our, well, CoffeeScript into JavaScript
  • Claudia.js compiles our JavaScript into AWS Lambda functions.
  • The Claudia API Builder configures the AWS API Gateway on top of our Lambda functions.
  • The latest code becomes available at https://ellie.eleventhq.com/latest/
  • Slack, GitHub, and potentially other services communicate with our functions through that endpoint, mostly via webhooks.

If you want a quick sanity check, you can go to the /echo endpoint and see what's up.

We do some clever stuff to get the vanity ellie.eleventhq.com URL on top of the API gateway. There's a CloudFront instance on top of it you should check out. Also some custom SSL stuff I don't really remember, I think it was with the AWS Certificate Manager.

Available Functionality

Please see app.coffee for the canonical list of endpoints.

  • /: hello world
  • /echo: debug the current request
  • /encrypt: encrypt the current POST text parameter with Ellie's public key, stored in AWS Key Management Service.
  • /github/events: Receives GitHub organization webhook events. We configure that here. You may need to log in as @Elliebot; password is in 1Password. Talk to @EleventHQ/operations if you don't have access and need it.
  • /labelize: Slack command. Reapplies our labeling scheme to a GitHub repository. Configure this in config/github.labels.yml.
  • /repository: Slack command. Create a new repository. Defaults are configured in config/github.yml.
  • /version: Get the current version.

maestro's People

Contributors

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