Git Product home page Git Product logo

newstochat's Introduction

NewsToChat

NewsToChat gathers your favorite articles across the web and posts a link to them in HipChat.

alt tag

###Development

  • Get the required dependencies:

  • Clone the repository and start the virtual machine (the first time will take awhile to boot)

    • $ git clone https://github.com/kherrick/NewsToChat
    • $ cd NewsToChat/
    • $ bin/vm start
    • $ bin/vm make init
  • To turn off the virtual machine

    • $ bin/vm stop
  • To login to the virtual machine

    • $ bin/vm ssh
  • Run unit tests, and see a coverage report:

    • bin/vm make test
    • bin/vm make test-coverage

###Hosting

  • Successfully hosted on:
    • Amazon AWS / Debian 7.6 / PHP 5.4.4
    • Had to apt-get install php5-cli php5-curl php5-sqlite to make things work properly from a default install.

###Methods for usage

  • There are three basic commands:

    • pullnews: pull from the identified news sources, scan for duplicates in the database, and save them.
    • pushnews: push one news item to the identified chat target and mark the item as expired.
    • maintenance: perform maintenance on the pool of news articles in the database.
  • Example using the vagrant setup: bin/vm ./newstochat.php pushnews -e true

  • NewsToChat is a very basic script at this point, for example, it can be ran manually or queued up to execute via cron jobs.

Build Status

newstochat's People

Contributors

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