The Community District Profiles organize a wide variety of data, maps, and other content to present an accessible and informative view of the built environment, key socio-economic conditions, community board perspectives, and planning activities in each district. This information empowers residents, community board members, planners, and other stakeholders to engage in city planning and advocate for their communities.
NYC Planning Labs takes on a single project at a time, working closely with our customers from concept to delivery in a matter of weeks. We conduct regular maintenance between larger projects.
Take a look at our sprint planning board {link to waffle} to get an idea of our current priorities for this project.
In the spirit of free software, everyone is encouraged to help improve this project. Here are some ways you can contribute.
- Comment on or clarify [issues](link to issues)
- Report [bugs](link to bugs)
- Suggest new features
- Write or edit documentation
- Write code (no patch is too small)
- Fix typos
- Add comments
- Clean up code
- Add new features
You will need the following things properly installed on your computer.
- Clone this repo
git clone https://github.com/NYCPlanning/labs-community-profiles.git
- Install Dependencies
yarn
- Start the server
ember s
- Point your browser to
http://localhost:4200
Community Profiles consists of a landing page and a route for each of NYC's 59 Community Districts. The landing page allows the user to search for their neighborhood, choose a community district from a dropdown, or click a community district from the map.
Once on a profile route, a long-scrolling page of charts, maps, and other content display the data.
Each profile has a model that pulls one row from the community_district_profiles_v202402
table and contains most of the data necessary to render the profile. The reports are Componentized where possible, using ember components to make sections or sub-sections self-contained.
- mapzen api - Description of this service
- {Replace this list with the app's backend service dependencies.}
Most of the data use by the app is stored in tables on the planninglabs carto instance.
community_district_profiles_v202402
- an aliased view of a wide table with one row for each community district and a column for each indicatorcommunity_profiles_floodplain
- same as above, but specific to waterfront/resiliency data used in the Floodplain section charts.cdprofiles_studies_plans
- a row for each dcp study/plan with its associated community districtscdprofiles_197a_plans
- a row for each 197a plan with its associated community districts
mappluto
- aliased view of the latest MapPLUTO versionfacdb
- aliased view of the latest NYC facilities Databasemerged_pfirm_firm_100yr_v201901
- Merged version of 2007 Food Insurance Rate Map and 2015 Preliminary Flood Insurance Rate Map 100 yr floodplain boundary, used for vizualizing and calculating things in the floodplainmerged_pfirm_firm_500yr_v201901
- Merged version of 2007 Food Insurance Rate Map and 2015 Preliminary Flood Insurance Rate Map 500 yr floodplain boundary, used for vizualizing and calculating things in the floodplainzoning_districts
- aliased view of the latest zoning dataset version
- static JSON files for the zoning chart are accessed via the github raw files api using https://github.com/NYCPlanning/labs-community-data
Mapzen search is used for autocomplete address searching.
A Proxy API that pulls data for a community district using ZAP's odata API, creating nice-looking URLs for a community district's projects. https://github.com/NYCPlanning/labs-zap-proxy
-
ESLint - We use ESLint with Airbnb's rules for JavaScript projects
- Add an ESLint plugin to your text editor to highlight broken rules while you code
- You can also run
eslint
at the command line with the--fix
flag to automatically fix some errors.
-
Testing
- run
ember test --serve
- Before creating a Pull Request, make sure your branch is updated with the latest
develop
and passes all tests
- run
Add dokku
remote: git remote add dokku dokku@{dokkudomain}:communityprofiles
Deploy with dokku: git push dokku master
You can find us on Twitter at @nycplanninglabs, or comment on issues and we'll follow up as soon as we can. If you'd like to send an email, use [email protected]
We use BrowserStack (free for open source projects) to do device testing.