{"id":19492813,"url":"https://github.com/oatpp/example-consul","last_synced_at":"2025-04-25T20:30:41.921Z","repository":{"id":98397806,"uuid":"168249521","full_name":"oatpp/example-consul","owner":"oatpp","description":"Example project how-to use oatpp-consul integration module.","archived":false,"fork":false,"pushed_at":"2024-04-22T21:25:56.000Z","size":23,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-29T22:51:42.464Z","etag":null,"topics":["consul","cpp","integration","oatpp"],"latest_commit_sha":null,"homepage":"https://oatpp.io/","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oatpp.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":"2019-01-30T00:04:44.000Z","updated_at":"2023-08-05T19:45:49.000Z","dependencies_parsed_at":"2024-11-07T00:24:36.289Z","dependency_job_id":"97a2313b-ac25-40fa-844b-8ae8f774b1c9","html_url":"https://github.com/oatpp/example-consul","commit_stats":{"total_commits":25,"total_committers":1,"mean_commits":25.0,"dds":0.0,"last_synced_commit":"c5c7bfdf734c2018b09cc897523d0ecff130896f"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oatpp%2Fexample-consul","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oatpp%2Fexample-consul/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oatpp%2Fexample-consul/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oatpp%2Fexample-consul/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oatpp","download_url":"https://codeload.github.com/oatpp/example-consul/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224015660,"owners_count":17241535,"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":["consul","cpp","integration","oatpp"],"created_at":"2024-11-10T21:23:08.752Z","updated_at":"2024-11-10T21:23:09.725Z","avatar_url":"https://github.com/oatpp.png","language":"C++","readme":"# Consul Integration Example [![Build Status](https://dev.azure.com/lganzzzo/lganzzzo/_apis/build/status/oatpp.example-consul?branchName=master)](https://dev.azure.com/lganzzzo/lganzzzo/_build?definitionId=15\u0026branchName=master)\n\nExample project how-to use [oatpp-consul](https://github.com/oatpp/oatpp-consul) module. \n\nSee more:\n\n- [Oat++ Website](https://oatpp.io/)\n- [Oat++ Github Repository](https://github.com/oatpp/oatpp)\n- [Get Started](https://oatpp.io/docs/start)\n\n## Overview\nThis project is using [oatpp](https://github.com/oatpp/oatpp) and [oatpp-consul](https://github.com/oatpp/oatpp-consul) modules.  \n\nCurrently this is trivial example.- Read/Write from/to Consul KV via endpoints declared in Controller.\nMore complex example later.  \n\nIn this example Consul is expected to run at port 8500.\n\n### Project layout\n\n```\n|- CMakeLists.txt                        // projects CMakeLists.txt\n|- src/\n|    |\n|    |- controller/                      // Folder containing controller where all endpoints are declared\n|    |- dto/                             // DTOs are declared here\n|    |- AppComponent.hpp                 // Service config\n|    |- App.cpp                          // main() is here\n|\n|- test/                                 // test folder\n|- utility/install-oatpp-modules.sh      // utility script to install required oatpp-modules.\n```\n\n---\n\n### Build and Run\n\n#### Using CMake\n\n**Requires** \n\n- `oatpp` and `oatpp-consul` modules installed. You may run `utility/install-oatpp-modules.sh` \nscript to install required oatpp modules.\n\n```\n$ mkdir build \u0026\u0026 cd build\n$ cmake ..\n$ make \n$ ./example-consul-exe          # - run application.\n```\n\n#### In Docker\n\n```\n$ docker build -t example-consul .\n$ docker run -p 8000:8000 -t example-consul\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foatpp%2Fexample-consul","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foatpp%2Fexample-consul","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foatpp%2Fexample-consul/lists"}