{"id":21710479,"url":"https://github.com/dmtai/realworld_service","last_synced_at":"2025-05-13T02:47:37.233Z","repository":{"id":181865400,"uuid":"667148297","full_name":"dmtai/realworld_service","owner":"dmtai","description":"Implementation of realworld app backend api","archived":false,"fork":false,"pushed_at":"2023-07-17T21:18:21.000Z","size":233,"stargazers_count":9,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T06:02:40.761Z","etag":null,"topics":["cmake","cpp","cpp17","example-project","plpgsql","postgresql","python","realworld","realworld-backend","userver"],"latest_commit_sha":null,"homepage":"https://realworld.io","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/dmtai.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}},"created_at":"2023-07-16T19:50:44.000Z","updated_at":"2025-03-03T17:13:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"280ed98b-76f5-4915-a105-3fa0f8c4e046","html_url":"https://github.com/dmtai/realworld_service","commit_stats":null,"previous_names":["dmtai/realworld_service"],"tags_count":0,"template":false,"template_full_name":"userver-framework/pg_service_template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmtai%2Frealworld_service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmtai%2Frealworld_service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmtai%2Frealworld_service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmtai%2Frealworld_service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmtai","download_url":"https://codeload.github.com/dmtai/realworld_service/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253862734,"owners_count":21975583,"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":["cmake","cpp","cpp17","example-project","plpgsql","postgresql","python","realworld","realworld-backend","userver"],"created_at":"2024-11-25T23:15:50.745Z","updated_at":"2025-05-13T02:47:37.206Z","avatar_url":"https://github.com/dmtai.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ![RealWorld Example App](media/logo.png)\n\nThis codebase was created to demonstrate a fully fledged backend application built with **[userver framework](https://userver.tech/)** and **[PostgreSQL](https://www.postgresql.org/)** including CRUD operations, authentication, routing, pagination, and more.\n\nFor more information on how to this works with other frontends/backends, head over to the [RealWorld](https://github.com/gothinkster/realworld) repo.\n\n## Build and run\nThe DB will be prepared and started and the service will be started on http://localhost:8080.\n### Docker-compose\n```\n# Clone submodules\ngit submodule update --init\n\n# Run service\nmake docker-start-service-release\n```\n### Local\n```\nmake service-start-release\n```\n## Tests\nRun unit and functional tests in docker or local.\n### Docker-compose\n```\nmake docker-test-release\n```\n### Local\n```\nmake test-release\n```\n\n## Makefile\n\n* `make build-debug` - debug build of the service with all the assertions and sanitizers enabled\n* `make build-release` - release build of the service with LTO\n* `make test-debug` - does a `make build-debug` and runs all the tests on the result\n* `make test-release` - does a `make build-release` and runs all the tests on the result\n* `make service-start-debug` - builds the service in debug mode and starts it\n* `make service-start-release` - builds the service in release mode and starts it\n* `make` or `make all` - builds and runs all the tests in release and debug modes\n* `make format` - autoformat all the C++ and Python sources\n* `make clean-` - cleans the object files\n* `make dist-clean` - clean all, including the CMake cached configurations\n* `make install` - does a `make build-release` and runs install in directory set in environment `PREFIX`\n* `make install-debug` - does a `make build-debug` and runs install in directory set in environment `PREFIX`\n* `make docker-COMMAND` - run `make COMMAND` in docker environment\n* `make docker-build-debug` - debug build of the service with all the assertions and sanitizers enabled in docker environment\n* `make docker-test-debug` - does a `make build-debug` and runs all the tests on the result in docker environment\n* `make docker-build-release` - release build of the service with all the assertions and sanitizers enabled in docker environment\n* `make docker-test-release` - does a `make build-release` and runs all the tests on the result in docker environment\n* `make docker-start-service-release` - does a `make install-release` and runs service in docker environment\n* `make docker-start-service-debug` - does a `make install-debug` and runs service in docker environment\n* `make docker-clean-data` - stop docker containers and clean database data","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmtai%2Frealworld_service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmtai%2Frealworld_service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmtai%2Frealworld_service/lists"}