Pg_service_template

Template of a C++ service that uses userver framework with PostgreSQL. Build, test and CI scripts ready
Alternatives To Pg_service_template
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Gpdb5,972
6 hours ago420apache-2.0C
Greenplum Database - Massively Parallel PostgreSQL for Analytics. An open-source massively parallel data platform for analytics, machine learning and AI.
Flask Admin5,4652,3099720 days ago39February 20, 2023490bsd-3-clausePython
Simple and extensible administrative interface framework for Flask
Sysbench5,290
3 months ago1February 27, 2018168gpl-2.0C
Scriptable database and system performance benchmark
Lapis2,891
a day ago156mitMoonScript
A web framework for Lua and OpenResty written in MoonScript
Marten2,45331642 days ago206July 23, 2023104mitC#
.NET Transactional Document DB and Event Store on PostgreSQL
Jailer2,269
13 hours ago57July 04, 2022apache-2.0Java
Database Subsetting and Relational Data Browsing Tool.
Fastapi Realworld Example App2,083
a year agomitPython
Backend logic implementation for https://github.com/gothinkster/realworld with awesome FastAPI
Apiauto1,782
16 days ago40apache-2.0JavaScript
☔ 敏捷开发最强大易用的 HTTP 接口工具,机器学习零代码测试、生成代码与静态检查、生成文档与光标悬浮注释,集 文档、测试、Mock、调试、管理 于一体的一站式体验。☔ The most advanced tool for HTTP API. Testing with machine learning, generating codes and static analysis, generating comments and floating hints, one site for document, testing, mocking, debugging and management.
Pg Mem1,562322 days ago128June 27, 2023134mitTypeScript
An in memory postgres DB instance for your unit tests
Liberapay.com1,473
13 hours ago478Python
Source code of the recurrent donations platform Liberapay
Alternatives To Pg_service_template
Select To Compare


Alternative Project Comparisons
Readme

pg_service_template

Template of a C++ service that uses userver framework with PostgreSQL.

Download and Build

To create your own userver-based service follow the following steps:

  1. Press the green "Use this template button" at the top of this github page
  2. Clone the service git clone your-service-repo && cd your-service-repo
  3. Give a propper name to your service and replace all the occurences of "pg_service_template" string with that name (could be done via find . -not -path "./third_party/*" -not -path ".git/*" -not -path './build_*' -type f | xargs sed -i 's/pg_service_template/YOUR_SERVICE_NAME/g').
  4. Feel free to tweak, adjust or fully rewrite the source code of your service.

Makefile

Makefile contains typicaly useful targets for development:

  • make build-debug - debug build of the service with all the assertions and sanitizers enabled
  • make build-release - release build of the service with LTO
  • make test-debug - does a make build-debug and runs all the tests on the result
  • make test-release - does a make build-release and runs all the tests on the result
  • make service-start-debug - builds the service in debug mode and starts it
  • make service-start-release - builds the service in release mode and starts it
  • make or make all - builds and runs all the tests in release and debug modes
  • make format - autoformat all the C++ and Python sources
  • make clean- - cleans the object files
  • make dist-clean - clean all, including the CMake cached configurations
  • make install - does a make build-release and runs install in directory set in environment PREFIX
  • make install-debug - does a make build-debug and runs install in directory set in environment PREFIX
  • make docker-COMMAND - run make COMMAND in docker environment
  • make docker-build-debug - debug build of the service with all the assertions and sanitizers enabled in docker environment
  • make docker-test-debug - does a make build-debug and runs all the tests on the result in docker environment
  • make docker-start-service-release - does a make install-release and runs service in docker environment
  • make docker-start-service-debug - does a make install-debug and runs service in docker environment
  • make docker-clean-data - stop docker containers and clean database data

Edit Makefile.local to change the default configuration and build options.

License

The original template is distributed under the Apache-2.0 License and CLA. Services based on the template may change the license and CLA.

Popular Testing Projects
Popular Postgresql Projects
Popular Software Quality Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
C Plus Plus
Cpp17
C Plus Plus 17
Testing
Postgres
Postgresql
Makefile
Coroutines
Postgresql Database