Code Monkey home page Code Monkey logo

slacktv's Introduction

slacktv

SlackTV is a web app to show most recent messages from a Slack channel, suitable for office TV Dashboards.

Usage

At present the best way to use this app is to fork, or download, the repository. To configure SlackTV you need to set 2 environment variables:

  • SLACK_KEY : An API key / token as decribed at https://api.slack.com/web
  • SLACKTV_CHANNEL : The name of the channel you want to display

You can set these environment variables in the context in which you are running the app, or if you're a little more savvy with clojure you can create a profiles.clj file in the project root and set them there.

To run a development SlackTV from a terminal run bin/lein ring server. Wait a few seconds and after starting the app it should launch your default browser pointing to the app (at localhost:3000)

To run in production you have a few options:

  • Run bin/lein with-profile production trampoline run -m slacktv.web. By default the app will run on port 3001, but you can change that by setting a PORT environment variable.
  • If running on Heroku just push the source to a new Heroku app - the included Procfile file should do all you need
  • If running on Amazon Elastic Beanstalk create a generic 'Single Container' docker application for the application artifact run the following command, and use the resulting zip file: git archive --format=zip HEAD > slacktv.zip
  • If you're more Clojure savvy you can compile an Uberjar or Uberwar and use that.

I'd welcome feedback in Github, or on twitter @mikebroberts

slacktv's People

Contributors

mikebroberts avatar

Stargazers

 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.