{"id":23156750,"url":"https://github.com/userver-framework/pg_service_template","last_synced_at":"2025-05-12T17:26:04.769Z","repository":{"id":43672546,"uuid":"511504877","full_name":"userver-framework/pg_service_template","owner":"userver-framework","description":"Template of a C++ service that uses userver framework with PostgreSQL. Build, test and CI scripts ready","archived":false,"fork":false,"pushed_at":"2025-02-11T10:43:31.000Z","size":83,"stargazers_count":42,"open_issues_count":1,"forks_count":20,"subscribers_count":7,"default_branch":"develop","last_synced_at":"2025-04-01T01:01:42.641Z","etag":null,"topics":["asynchronous","backend","coroutines","cplusplus-17","cpp17","makefile","postgres","postgresql","postgresql-database","template","template-project","testing","userver"],"latest_commit_sha":null,"homepage":"","language":"C++","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/userver-framework.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":"2022-07-07T11:44:13.000Z","updated_at":"2025-02-11T10:41:45.000Z","dependencies_parsed_at":"2024-05-17T20:30:32.684Z","dependency_job_id":"28558438-8e83-46e5-bfc9-edc5fa0dfae5","html_url":"https://github.com/userver-framework/pg_service_template","commit_stats":null,"previous_names":[],"tags_count":2,"template":true,"template_full_name":"userver-framework/service_template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/userver-framework%2Fpg_service_template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/userver-framework%2Fpg_service_template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/userver-framework%2Fpg_service_template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/userver-framework%2Fpg_service_template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/userver-framework","download_url":"https://codeload.github.com/userver-framework/pg_service_template/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253785957,"owners_count":21964061,"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":["asynchronous","backend","coroutines","cplusplus-17","cpp17","makefile","postgres","postgresql","postgresql-database","template","template-project","testing","userver"],"created_at":"2024-12-17T21:14:29.522Z","updated_at":"2025-05-12T17:26:04.761Z","avatar_url":"https://github.com/userver-framework.png","language":"C++","readme":"**This repository is for userver v2.8 or older versions. For newer versions of userver please use \n[userver-create-service](https://userver.tech/de/dab/md_en_2userver_2build_2build.html#autotoc_md177) script.**\n\n# pg_service_template\n\nTemplate of a C++ service that uses [userver framework](https://github.com/userver-framework/userver) with PostgreSQL.\n\n\n## Download and Build\n\nTo create your own userver-based service follow the following steps:\n\n1. Press the \"Use this template button\" at the top right of this GitHub page\n2. Clone the service `git clone your-service-repo \u0026\u0026 cd your-service-repo`\n3. Give a proper name to your service and replace all the occurrences of \"service_template\" string with that name\n   (could be done via `find . -not -path \"./third_party/*\" -not -path \".git/*\" -not -path './build-*' -type f | xargs sed -i 's/service_template/YOUR_SERVICE_NAME/g'`).\n4. Feel free to tweak, adjust or fully rewrite the source code of your service.\n\n\n## Makefile\n\n`PRESET` is either `debug`, `release`, or if you've added custom presets in `CMakeUserPresets.json`, it\ncan also be `debug-custom`, `release-custom`.\n\n* `make cmake-PRESET` - run cmake configure, update cmake options and source file lists\n* `make build-PRESET` - build the service\n* `make test-PRESET` - build the service and run all tests\n* `make start-PRESET` - build the service, start it in testsuite environment and leave it running\n* `make install-PRESET` - build the service and install it in directory set in environment `PREFIX`\n* `make` or `make all` - build and run all tests in `debug` and `release` modes\n* `make format` - reformat all C++ and Python sources\n* `make dist-clean` - clean build files and cmake cache\n* `make docker-COMMAND` - run `make COMMAND` in docker environment\n* `make docker-clean-data` - stop docker containers and clean database data\n\n\n## License\n\nThe original template is distributed under the [Apache-2.0 License](https://github.com/userver-framework/userver/blob/develop/LICENSE)\nand [CLA](https://github.com/userver-framework/userver/blob/develop/CONTRIBUTING.md). Services based on the template may change\nthe license and CLA.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuserver-framework%2Fpg_service_template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuserver-framework%2Fpg_service_template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuserver-framework%2Fpg_service_template/lists"}