Giter VIP home page Giter VIP logo

foiamachine's Introduction

FOIAMachine is an open source project to send, organize and share requests for government data and documents. It will help you generate a request and has a crowdsourced database of federal, state and local agencies. You can sign up for a free account at foiamachine.org. Please email any questions to info at foiamachine dot org or reach out to us on Twitter @FOIAMachine.

While this repository allows you to set up a private instance, it lacks data from foiamachine.org. Contact information for government employees at more than 500 agencies and data for all 50 states’ public records request act is not included. The FOIAMachine team believes data will make this project valuable. We encourage you to create an account at foiamachine.org to contribute data and contacts to other users. Additionally, to send requests via a private instance you will need either a Mailgun account or new methods to send and receive email.

Use this guide to learn more about setting up a FOIAMachine instance and sending bulk requests.

Build Status

Requirements

  • Python
  • git
  • virtualenv
  • Mercurial
  • libmemcached-dev
  • MySQL

for Ubuntu, some help:

  • sudo apt-get install mysql-server
  • sudo apt-get install libmemcached-dev
  • sudo apt-get install mercurial meld
  • sudo apt-get install python-dev libmysqlclient-dev
  • sudo apt-get install python-pip
  • sudo apt-get install git
  • sudo pip install virtualenv
  • sudo apt-get install libtiff5-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python-tk

Getting started

Create a new virtual environment and jump in.

$ virtualenv foiamachine
$ cd foiamachine
$ . bin/activate

Clone the repository.

$ git clone [email protected]:cirlabs/foiamachine.git repo

Jump in and install the Python requirements.

$ cd repo
$ pip install -r requirements.txt

Create a MySQL database and create our base tables.

$ echo "create database foiamachine" | mysql -u <your_db_user_here> -p
$ python foiamachine/manage.py syncdb --noinput
$ python foiamachine/manage.py migrate
$ python foiamachine/manage.py createsuperuser

Load default data.

$ python foiamachine/manage.py load_all_data

Fire up the runserver and take a look at localhost:8000

$ fab rs

#SASS Setup

gem install sass
gem install compass
gem install zen-grids
gem install sassy-buttons
compass create . --bare --sass-dir "foiamachine/assets/sass" --css-dir "foiamachine/assets/css" --javascripts-dir "foiamachine/assets/js" --images-dir "foiamachine/assets/img" --force
compass install sassy-buttons

#LICENSE

The MIT License (MIT)

Copyright (c) 2014 Shane Shifflett

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

foiamachine's People

Contributors

palewire avatar shaneshifflett 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.