Property is a client-side web application for aggregating open data about properties in the City of Philadelphia. All logic is in client-side JavaScript -- there is not server-side components outside of the open data APIs.
Property makes several AJAX calls, some of which are required to complete before the next one can happen. The flow happens like this:
But a user can also share a link directly to a property which contains the OPA number in the query string. In this case, the flow happens like this:
Clone the repository
git clone git@github.com:CityOfPhiladelphia/property2.git
cd property2
Start a web server of your choosing. For example:
python -m SimpleHTTPServer
For python v3 users:
python3 -m http.server 9000
You're done! Go visit http://127.0.0.1:8000.
Nearly all markup is in templates located in index.html
, but note that some is generated in the JavaScript views.
All application setup logic is in js/app.js
. This includes event bindings, templating, utilities, etc.
js/front.js
js/results.js
js/property.js
Property is hosted on GitHub pages. To deploy:
gh-pages
branch.Test against each of these browsers, including mobile and print view, before deploying to production.