{"id":17651429,"url":"https://github.com/johncoleman83/chicago-resource-hub","last_synced_at":"2026-05-03T06:38:33.958Z","repository":{"id":121600113,"uuid":"93987027","full_name":"johncoleman83/chicago-resource-hub","owner":"johncoleman83","description":"Google Maps API Client: material design, fuzzy search, pagination, location popups","archived":false,"fork":false,"pushed_at":"2020-03-06T04:02:53.000Z","size":8009,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-05T10:49:39.683Z","etag":null,"topics":["fuzzy-search","google-maps","google-maps-api","maps","material-design","pagination","search","wordpress"],"latest_commit_sha":null,"homepage":"https://www.chicagoresourcehub.com/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johncoleman83.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-11T06:50:03.000Z","updated_at":"2020-03-06T04:02:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"a89ad7ca-e098-4c61-bffa-a2eca5120a91","html_url":"https://github.com/johncoleman83/chicago-resource-hub","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johncoleman83%2Fchicago-resource-hub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johncoleman83%2Fchicago-resource-hub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johncoleman83%2Fchicago-resource-hub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johncoleman83%2Fchicago-resource-hub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johncoleman83","download_url":"https://codeload.github.com/johncoleman83/chicago-resource-hub/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246296584,"owners_count":20754632,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fuzzy-search","google-maps","google-maps-api","maps","material-design","pagination","search","wordpress"],"created_at":"2024-10-23T11:42:13.639Z","updated_at":"2026-05-03T06:38:28.940Z","avatar_url":"https://github.com/johncoleman83.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chicago Resource Hub Child Theme and Map Template\n\n## Front-end\n\nhttps://www.chicagoresourcehub.com/\n\n## Dependencies\n\n### JQuery\n\nThis is a vanilla JS application, using JQuery: https://api.jquery.com/\n\n### requireJS\n\nPackages are managed with `require.js`: https://requirejs.org/\n\n### WordPress\n\nThis child theme can be plugged into **WordPress**: https://wordpress.org/ However,\nall that is needed are some of the JS, CSS \u0026 HTML files.  The PHP is just some\nof the design stuff.\n\n### Material Design\n  * The ui uses materialize theme based on material design: https://materializecss.com/\n  * Also google's material.io design for web: https://github.com/material-components/material-components-web/\n\n### FlexSearch\n\nThe Data Store of locations is queried using FlexSearch: https://github.com/nextapps-de/flexsearch\n\n### Google Maps API (with Places configured)\n\n* You need to have a Google Cloud Platform Account along with a Project that has a Google Maps API Key\n\nIf you don't already have an account, then you will need to start a Google Cloud Platform Account:\n\n* https://cloud.google.com/maps-platform/places/\n\n**$200 free monthly usage**\n\u003e For most of our users, the $200 monthly credit is enough to support their needs.\n\u003e You can also set daily quotas to protect against unexpected increases.\n\nInstructions on actually aquiring your API key are here:\n* https://developers.google.com/places/web-service/get-api-key\n\n## About\n\n### V1\n\n(Now Deprecated) This tool interacted with **Google Fusion** Tables Database using the Google Rest API: https://developers.google.com/fusiontables/\n\n### V2\n\nCurrent Version of Map Search Tool and Google Maps API.\nThis uses an  in-memory data store, FlexSearch Search API, \u0026 Google Maps API \n\n## Usage\n\n* The DataStore location URL should use Local data if you are running locally to develop.\nThis is important to avoid cross-origin browser errors.\n\nfrom `js/lib/constants.js`:\n```\nconst DATA_URL = LOCAL_DATA;\n```\n\n* If you need the map to function ensure you've inserted a correct Google Maps API Key.\nYou also need to set the authorizations for your Google API Key in the Google Cloud Command\nConsole.  There you will find a setting to restrict the use of the API key.  In order to\ntest locally, you'll need to set restrictions to **None**.\n  * Visit: `https://console.cloud.google.com/apis/credentials?authuser=1\u0026project=\u003cYOUR_PROJECT_NAME\u003e`\n  * Click on **\"Credentials\"** in the Google Cloud Platform Project Settings\n  * Click on **\"Application restrictions\"**\n  * Set your restrictions according to your needs\n\n* The application should have your API KEY configured.\n\nThis app uses `require.js`, so in `js/app.js` change the API Key\n```\npaths: {\n  shared: 'shared',\n  jquery: 'jquery-3.4.1',\n  google: '//maps.googleapis.com/maps/api/js?key=\u003cHIDDEN\u003e\u0026region=US\u0026libraries=places'\n},\n```\n\n* Start server and begin!\n```\n$ cd v2 \u0026\u0026 ../scripts/server-cors.py\n```\n\n* encode locations js file\n\nThis is a little bit of security by obscurity.  It does nothing to protect the data\nbut simply creates a little bit more challenge for bots trying to scrape\ncontact information.  We don't want bots getting all the list of phone numbers\nto start spamming these locations.\n\n```\n// start server\n$ cd v2 \u0026\u0026 ../scripts/server-cors.py\n\n// convert json data to javascript object\nlet r = $.getJSON(\"http://localhost:8000/data/locations.json\", function(json) {\n  return json;\n});\n\n// convert data right back to string\n// r.responseText;\nlet stringData = JSON.stringify(r.responseJSON);\n\n// convert string to base65 encoding\nlet encodedData = btoa(unescape(encodeURIComponent(stringData)))\n\n// convert back\nlet decodedData = JSON.parse(decodeURIComponent(escape(atob(encodedData))))\n```\n\n## Author\n\nDavid John Coleman II, [davidjohncoleman.com](https://www.davidjohncoleman.com/)\n\n## License\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohncoleman83%2Fchicago-resource-hub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohncoleman83%2Fchicago-resource-hub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohncoleman83%2Fchicago-resource-hub/lists"}