{"id":27062591,"url":"https://github.com/biegehydra/libpostalnetdockercontainer","last_synced_at":"2025-04-05T15:17:52.404Z","repository":{"id":203204645,"uuid":"676775392","full_name":"biegehydra/LibPostalNetDockerContainer","owner":"biegehydra","description":"An asp.net core web api harnessing the power of LibPostal (Address Parser and Expander) with a docker file for linux container deployment.","archived":false,"fork":false,"pushed_at":"2024-04-23T18:19:24.000Z","size":4065,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-23T20:13:55.102Z","etag":null,"topics":["address-extraction","address-parser","container","docker","libpostal"],"latest_commit_sha":null,"homepage":"","language":"C#","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/biegehydra.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}},"created_at":"2023-08-10T01:48:16.000Z","updated_at":"2023-12-30T17:07:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"0e2694b3-ae35-4788-bff4-081c13ef038a","html_url":"https://github.com/biegehydra/LibPostalNetDockerContainer","commit_stats":null,"previous_names":["biegehydra/libpostalnetdockercontainer"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biegehydra%2FLibPostalNetDockerContainer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biegehydra%2FLibPostalNetDockerContainer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biegehydra%2FLibPostalNetDockerContainer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biegehydra%2FLibPostalNetDockerContainer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/biegehydra","download_url":"https://codeload.github.com/biegehydra/LibPostalNetDockerContainer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247353719,"owners_count":20925329,"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":["address-extraction","address-parser","container","docker","libpostal"],"created_at":"2025-04-05T15:17:51.929Z","updated_at":"2025-04-05T15:17:52.398Z","avatar_url":"https://github.com/biegehydra.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Instructions to run locally\n\n### Build or Download LibPostal.dll\nBefore using the .Net bindings, you must build the libpostal C library or download the precompiled library.\n\nDownloads (From openvenues/libpostal AppVeyor CI):\n+ [x86 / 32-bit version](https://goo.gl/Bf3EzE)\n+ [x64 / 64-bit version](https://goo.gl/o8DAi8)\n\nIf you opt for downloading just extract the folder and put all its contents\nin the appropriate folder. (LibPostalNet/x64 or LibPostalNet/x86) \n\n### Note\nDownloading the LibPostal.dll doesn't mean you don't have to install LibPostal, it just\nmeans you don't have to build it. You still need to install it on your machine.\n\n### Install LibPostal on your machine\n\nInstructions can be found on LibPostal's github https://github.com/openvenues/libpostal\n\nThese are the instructions I used on my WINDOWS machine. WHEREVER YOU INSTALL LIBPOSTAL\nYOU MUST UPDATE THE APPSETTINGS.DEVELOPMENT.JSON FILE WITH THE APPROPRIATE PATH.\n\n#### Installation (Windows)\n\n**MSys2/MinGW**\n\nFor Windows the build procedure currently requires MSys2 and MinGW. This can be downloaded from http://msys2.org. Please follow the instructions on the MSys2 website for installation.\n\nPlease ensure Msys2 is up-to-date by running:\n```\npacman -Syu\n```\n\nInstall the following prerequisites:\n```\npacman -S autoconf automake curl git make libtool gcc mingw-w64-x86_64-gcc\n```\n\nThen to build the C library:\n```\ngit clone https://github.com/openvenues/libpostal\ncd libpostal\ncp -rf windows/* ./\n./bootstrap.sh\n./configure --datadir=[...some dir with a few GB of space...]\nmake -j4\nmake install\n```\nNotes: When setting the datadir, the `C:` drive would be entered as `/c`. The libpostal build script automatically add `libpostal` on the end of the path, so '/c' would become `C:\\libpostal\\` on Windows.\n\nThe compiled .dll will be in the `src/.libs/` directory and should be called `libpostal-1.dll`.\n\nIf you require a .lib import library to link this to your application. You can generate one using the Visual Studio `lib.exe` tool and the `libpostal.def` definition file:\n```\nlib.exe /def:libpostal.def /out:libpostal.lib /machine:x64\n```\n\n## Instructions to run docker container locally\n\nWhen running this project in a docker container locally, you will want to take advantage of\nlayer caching; because installing LibPostal in a container takes a lot of time.\nTo do this, open command prompt in the root of the project (with the docker file) and run the following\n\n```\ndocker build -t libpostalnet:v1 .\n```\nThen every time you create a new image, use the same name and it will use the cached layers.\n\n```\ndocker build -t libpostalnet:v2 .\n```\n\n### Run the container\n\n```\ndocker run -d -p {host port}:{container port} {image name}:{image tag}\n\nex: docker run -d -p 7052:80 libpostal:v6\n```\n\nAfter that, you can test that it's running by going to http://localhost:7052/health\nNote: It is http not https here.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiegehydra%2Flibpostalnetdockercontainer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbiegehydra%2Flibpostalnetdockercontainer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiegehydra%2Flibpostalnetdockercontainer/lists"}