GithubHelp home page GithubHelp logo

micahstubbs / electiondesk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from votinginfoproject/electiondesk

0.0 1.0 0.0 7.63 MB

A social media monitoring dashboard for election officials

Home Page: http://electiondesk.us

License: BSD 3-Clause "New" or "Revised" License

JavaScript 3.70% CSS 4.31% PHP 91.43% ApacheConf 0.06% HTML 0.38% Makefile 0.02% C 0.10%

electiondesk's Introduction

ElectionDesk

ElectionDesk is a Social Media Dashboard designed to help voting officials monitor social media activity.

ElectionDesk has several built-in tools to facilitate this:

  • A trending topics view that gathers filtered social media updates across several social networks
  • Filtering by topics and location
  • In-dashboard bookmark and reply functionality
  • Conversations view to keep track of existing messages that have been sent and received
  • And more

Technical description

ElectionDesk is splitted into two parts -- the web-facing dashboard and the social media consumer running in the background.

Dashboard

The ElectionDesk dashboard is based off of the CodeIgniter PHP Framework it shares data with the consumer using a MySQL database for general data and MongoDB for social media interactions.

Consumer

The consumer is a Composer-backed CLI app that is responsible for fetching social media interactions from the various social networks and storing them in MongoDB. The initial version used DataSift but it has since been transitioned to support interaction directly with the various API's from the social media networks.

The DataSift functionality has hover been retained, allowing switching between DataSift and Social Media API's via a config file constant.

Requirements

ElectionDesk requires the following software to be installed and configured first

  • PHP 5.4+
  • MySQL
  • MongoDB
  • Memcached

Installation

Clone the latest version of ElectionDesk

$ git clone [email protected]:votinginfoproject/ElectionDesk.git
$ cd ElectionDesk

Create the config file

$ cp config.sample.php config.php
$ vim config.php

Import MySQL database structure

$ mysql -u YOUR_MYSQL_USERNAME -p YOUR_MYSQL_DATABASE < database_structure.sql

Install composer depencies

$ cd consumer
$ composer install

The next steps depends on whether you're using the Social Media APIs or DataSift as a data provider

If using individual social network APIs (recommended)

Set up a cron job to run the consumer periodically

$ crontab -e

Example cronjob that runs every 4 minutes

*/4 * * * * cd /var/www/electiondesk/consumer && php start.php > /var/log/consumer.log

If using DataSift

Run start.php in the consumer fodler

$ cd consumer
$ php start.php

It is recommended that you use a process monitoring service such as supervisord to restart the script in case of a failure.

electiondesk's People

Contributors

minicodemonkey avatar engagemike avatar

Watchers

James Cloos 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.