{"id":23146829,"url":"https://github.com/bowmans-dev/mapbox_node_geocoder_mongo_geojson","last_synced_at":"2025-04-04T13:24:48.277Z","repository":{"id":175529622,"uuid":"600389936","full_name":"bowmans-dev/mapbox_node_geocoder_mongo_geojson","owner":"bowmans-dev","description":null,"archived":false,"fork":false,"pushed_at":"2023-02-11T10:49:56.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"library","last_synced_at":"2025-02-09T23:14:25.278Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bowmans-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-02-11T10:46:21.000Z","updated_at":"2023-02-11T10:47:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"7ed4faca-a40c-4280-a7dd-d045c27b0218","html_url":"https://github.com/bowmans-dev/mapbox_node_geocoder_mongo_geojson","commit_stats":null,"previous_names":["bowmans-dev/mapbox_node_geocoder_mongo_geojson"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bowmans-dev%2Fmapbox_node_geocoder_mongo_geojson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bowmans-dev%2Fmapbox_node_geocoder_mongo_geojson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bowmans-dev%2Fmapbox_node_geocoder_mongo_geojson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bowmans-dev%2Fmapbox_node_geocoder_mongo_geojson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bowmans-dev","download_url":"https://codeload.github.com/bowmans-dev/mapbox_node_geocoder_mongo_geojson/tar.gz/refs/heads/library","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247183412,"owners_count":20897588,"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":[],"created_at":"2024-12-17T16:38:50.821Z","updated_at":"2025-04-04T13:24:48.261Z","avatar_url":"https://github.com/bowmans-dev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### A store locator API that serves GeoJSON data. With a simple frontend demo using Mapbox for the UI.\n\n- a back-end API using Express\n- a front end using MapBox to work with the API\n- Node-geocoder to convert addresses to geojson data\n- Mongoose db to store converted geojson data\n- Mongoose middleware for creating geojson fields\n- Map Box to display geo json fields retrieved by the fetch API and plot locations.\n\n#### Add your MONGO_URI and GEOCODER_API_KEY to the \"config/config.env\" file.\n\n#### Install dependencies\n`npm install`\n\n#### Serve on localhost:5000\n`npm run dev` (nodemon)\nor\n`npm start`\n\n#### Routes\nGET    /api/v1/stores # Get Stores\n\nPOST   /api/v1/stores # Add Store\nbody { storeId: \"0001\", address: \"10 main st Boston MA\" }\n\n#### Video Tutorial: \n\n##### https://www.youtube.com/watch?v=9FQrFah9rnc\n\n#### TIMESTAMPS:\n- Intro - 0:22\n- Create Database - 2:35\n- Install Packages - 3:42\n- Basic Server Setup - 5:40\n- Routes - 9:23\n- Stores Controller - 12:50\n- Connect to Database - 15:32\n- Create Store Model - 19:42\n- Fetch Stores Function - 25:50\n- Add Store Function - 28:38 (Status code should be \"201\" created instead of \"200\")\n- Geocoder Setup - 35:04\n- Create Mongoose Middleware - 39:40\n- Create Static Folder For Frontend - 45:50\n- Setup Mapbox - 49:50\n- Plotting Points - 55:17\n- Fetch Stores For Map - 1:00:37\n- Add Store Page - 1:06:25\n- Add Store Via Frontend - 1:09:30\n\n#### Code:\n### https://github.com/bradtraversy/store...\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbowmans-dev%2Fmapbox_node_geocoder_mongo_geojson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbowmans-dev%2Fmapbox_node_geocoder_mongo_geojson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbowmans-dev%2Fmapbox_node_geocoder_mongo_geojson/lists"}