GithubHelp home page GithubHelp logo

alessandrominoccheri / trainstatus-slack Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dymissy/trainstatus-slack

0.0 1.0 0.0 79 KB

Retrieve the status of a Train with a Slack command

JavaScript 100.00%

trainstatus-slack's Introduction

TrainStatus Slack Command

The Trenitalia integration for Slack gives you and your teams the ability to retrieve the status of a Train by its own number.

Installing the Trenitalia integration for Slack

Before the configure the application on Slack you need to deploy the application on a remote server. This library comes out with a serverless configuration. This means you are able to deploy on AWS and automatically create an API Gateway endpoint to paste on Slack configuration.

Deploy the application with Serverless

You need to configure your AWS credentials with a profile and your personal credentials. Find out more info at https://docs.aws.amazon.com/polly/latest/dg/setup-aws-cli.html. Now you can deploy the application on AWS.

serverless deploy --aws-profile <your-aws-profile> --region <your-aws-region>

The CLI will output the endpoint of your API gateway.

### Run the application on local environment

You can try locally the application with the following command:

npm run debug

The file event.json contains an example of Slack request body. Here you can customize the number of the train.

Usage

/train <trainNumber>

Screenshot

TrainStatus Slack Command Screenshot

trainstatus-slack's People

Watchers

 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.