{"id":22693399,"url":"https://github.com/kents00/zipcode","last_synced_at":"2025-07-23T07:03:27.044Z","repository":{"id":238146809,"uuid":"793677604","full_name":"kents00/ZipCode","owner":"kents00","description":"Directory of zip codes in one package!!","archived":false,"fork":false,"pushed_at":"2024-05-04T15:16:03.000Z","size":127,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-23T07:02:27.669Z","etag":null,"topics":["zipcode-service","zipcodes"],"latest_commit_sha":null,"homepage":"https://zipcode-8bqw.onrender.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/kents00.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,"zenodo":null}},"created_at":"2024-04-29T16:58:24.000Z","updated_at":"2025-05-03T13:15:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"9efc62fb-3885-4fad-a404-a64dfb762457","html_url":"https://github.com/kents00/ZipCode","commit_stats":null,"previous_names":["kents00/zipcode"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/kents00/ZipCode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kents00%2FZipCode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kents00%2FZipCode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kents00%2FZipCode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kents00%2FZipCode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kents00","download_url":"https://codeload.github.com/kents00/ZipCode/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kents00%2FZipCode/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266633053,"owners_count":23959467,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["zipcode-service","zipcodes"],"created_at":"2024-12-10T02:10:28.795Z","updated_at":"2025-07-23T07:03:26.989Z","avatar_url":"https://github.com/kents00.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ZipCode\n“Directory of zip codes in one package!”\n\nThe purpose of this project is to provide a solution for users to search for locations based on region, province, city, or zip code. The application uses SQLite as its database management system to store and retrieve data.\n\n## **Installation**\n\nTo use this application, you need to have Node.js installed on your system. You can download and install Node.js from the official website:\n\n\u003chttps://nodejs.org/en/download/\u003e\n\nOnce Node.js is installed, you can install the required dependencies by running the following command in your terminal:\n\n```bash\nnpm install\n```\n\nThis command will install `express` and `sqlite3` packages, which are used by the application.\n\n## **Usage**\n\nTo start the application using and API, run the following command in your terminal `node api.js`\n\nThis will start the server on port 3000. You can then send a GET request to the `/search` endpoint with the `input=` parameter set to the desired search query. For example, you can use a tool like\n\n[Postman](https://www.postman.com/) or [curl](https://curl.se/) to send a request like this:\n\n```bash\nGET http://localhost:3000/search?input=London\n```\n\nThe application will then return a JSON response containing the matching locations. If no matching locations are found, it will return a 404 status code with an error message.\n\nYou can also use the non API functionality as well by executing the `modular.js` you can use this reference below by accessing the `usage.js` file:\n\n```bash\nconst { queryDatabase } = require('./modular');\n\nqueryDatabase('7203', (err, rows) =\u003e {\n  if (err) {\n    console.error('Error occurred:', err.message);\n  } else if (rows.length === 0) {\n    console.log('No results found.');\n  } else {\n    console.log('Search results:', rows);\n  }\n});\n\n```\n\n## **Contributing**\n\nIf you find any bugs or have suggestions for improvements, please [open an issue](https://github.com/kents00/ZipCode/issues) or submit a [pull request](https://github.com/kents00/ZipCode/pulls). We welcome any contributions to make this application better.\n\n## **License**\n\nThis project is licensed under the [MIT License](https://www.perplexity.ai/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkents00%2Fzipcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkents00%2Fzipcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkents00%2Fzipcode/lists"}