Skip to content

CityofSyracuse/Open-Data-Library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Open-Data-Library

Syracuse Open Data Inventory Search

This project is a dataset explorer for the City of Syracuse Open Data portal.It pulls live dataset metadata from ArcGIS and displays it in a searchable, filterable, sortable table.

Live site:

[https://syr-opendata-library.netlify.app/)


What This Is For

This tool gives staff and the public a clean way to:

  • Search datasets by title
  • Filter by Open Data category
  • Filter by publish year
  • Sort by title, publish date, or updated date
  • Quickly see how many datasets exist and how many match filters

Data & Filtering

We pull from the city ArcGIS group:

af5799e7f6d84c5a944b053a47e18121

Using the ArcGIS REST Search API. The script paginates automatically until all datasets in the group are retrieved.

Categories come from:

item.groupCategories

ArcGIS stores these like:

/Categories/Infrastructure

We strip /Categories/ and display the clean category name.

If categories change in ArcGIS, the dropdown updates automatically


Year Filter

Year is based on Date Published (created)


How to Run Locally

  1. Clone the repository:
git clone https://github.com/YOUR_ORG/Open-Data-Library.git
  1. Move into the folder:
cdOpen-Data-Library
  1. Open index.html in your browser. or use Live Server in VS Code.

Deployment

The site is deployed through Netlify.

  • The main branch is connected to Netlify.
  • Any merge into main triggers an automatic deploy.

If something looks wrong after a merge:

  • Check Netlify deploy logs
  • Hard refresh the browser

Making Changes

If you’re modifying functionality, always use a branch.

Create a branch:

git checkout -b feature/describe-change

Make your edits to index.html.

Test locally:

  • Confirm filters stack properly
  • Confirm sorting still works
  • Check browser console for errors

Then commit:

git add . git commit-m "Clear description of change" git push origin feature/describe-change

Open a Pull Request for review.


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages