Skip to content
This repository has been archived by the owner on Mar 9, 2021. It is now read-only.

ombulabs/infractores

Folders and files

NameName
Last commit message
Last commit date
Jan 22, 2019
Jun 7, 2017
May 2, 2016
Feb 29, 2016
May 9, 2016
Sep 11, 2015
Aug 24, 2015
Jun 7, 2017
Nov 12, 2015
Jan 22, 2019
Sep 11, 2015
Jun 7, 2017
Jun 7, 2017
May 9, 2016
Jan 22, 2019
Jan 22, 2019
Nov 14, 2015
Feb 26, 2016
Sep 18, 2015
May 9, 2016
Aug 24, 2015
Aug 24, 2015
May 9, 2016

Repository files navigation

Infractores

Build Status

Infractores is a tool that lets anyone with a Twitter account report a parking violation with a tweet.

The violations are recorded and placed in a map along with evidence supporting the report.

Considerations

The project uses a Twitter application to find the tweets that describe a violation. It also uses Amazon Web Services to store the evidence related to the violation.

Requirements

  • Postgres 9.4.1+
  • Redis 3.0.1+
  • Ruby 2.2.1

Setup

Setup your environment

cp .env.sample .env

You must enter your AWS and Twitter credentials in this file.

Setup your database

rake db:create db:migrate

Get parking violations from Twitter

rake twitter:download_tweets

This task will download all the mentions for the user associated with the Twitter credentials and its hashtag, for example: #InfractoresBA

Start

foreman start

This will start the Rails server and a Sidekiq worker to process the tweets.

License

See: MIT License.