Coder Social home page Coder Social logo

recordtrac's Introduction

RecordTrac

This is a portal to manage and display public record requests, built by the Code for America 2013 Oakland team. The project is currently being used by the City of Oakland, and is extensible to other municipalities. Our docs are available here. We'd love your feedback. E-mail us at recordtrac at postcode dot io or open an issue if you have any questions.

Installation

Mac OS X Pre-requisites

This application requires Postgres and Xcode developer tools to be installed.

/Applications/Postgres.app/Contents/MacOS/bin/psql
CREATE DATABASE recordtrac;

Ubuntu Pre-requisites

Install Postgres, Python, and other required packages.

sudo apt-get install postgresql-9.1 postgresql-server-dev-9.1 python-dev

Postgres & Python

If you are using a standard Postgres installation or from Homebrew you can also use:

createdb recordtrac

In a new window:

git clone git://github.com/postcode/recordtrac.git
cd recordtrac
sudo pip install -r requirements.txt

Save .env.example as .env and update relevant fields.

Other Accounts

To use e-mail, sign up for a free account with SendGrid and provide the username and password in MAIL_USERNAME and MAIL_PASSWORD. We assume your monthly email limit is 40,000 sends (Sendgrid's Bronze account level), but you can change this by setting a SENDGRID_MONTHLY_LIMIT int value in settings.env.

To be able to catch spammy input, sign up for a free account with Akismet and provide the application URL and Akismet key in APPLICATION_URL and AKISMET_KEY.

Run locally

If creating the database for the first time, run:

foreman run python db_setup.py

There are two external data sources the application depends upon: staff directory information (stored in public_records_portal/static/json/directory.json) and information about the departments within the agency (stored in public_records_portal/static/json/departments.json). The data provided is from the City of Oakland, but you should update these files to meet your needs.

To seed the application with user data (as provided in the above two files), requests and responses, run:

foreman run python db_seed.py

To use the application locally, exit out of python and run:

foreman start

You should see something similar to:

2013-05-06 12:16:53 [1776] [INFO] Starting gunicorn 0.17.4
2013-05-06 12:16:53 [1776] [INFO] Listening at: http://127.0.0.1:5000 (1776)
2013-05-06 12:16:53 [1776] [INFO] Using worker: sync
2013-05-06 12:16:53 [1779] [INFO] Booting worker with pid: 1779
2013-05-06 12:16:53 [1780] [INFO] Booting worker with pid: 1780

Navigate to the url (in this case, http://127.0.0.1:5000) in your browser.

You can now login with any e-mail address and the password 'admin'.

recordtrac's People

Contributors

richaagarwal avatar criscristina avatar mholubowski avatar waltz avatar jcody avatar migurski avatar ananelson avatar ondrae avatar eddietejeda avatar

Watchers

Randy Bonds Jr avatar 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.