{"id":28533278,"url":"https://github.com/andrenbrandao/bazel-cpp-boilerplate","last_synced_at":"2026-04-29T13:34:15.122Z","repository":{"id":251502876,"uuid":"837610999","full_name":"andrenbrandao/bazel-cpp-boilerplate","owner":"andrenbrandao","description":"Bazel boilerplate with C++ and GoogleTest.","archived":false,"fork":false,"pushed_at":"2024-08-04T17:18:31.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-07T19:45:29.183Z","etag":null,"topics":["bazel","build-tool","cpp"],"latest_commit_sha":null,"homepage":"","language":"Starlark","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/andrenbrandao.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":"2024-08-03T13:36:18.000Z","updated_at":"2024-08-04T17:18:34.000Z","dependencies_parsed_at":"2024-08-03T15:05:27.172Z","dependency_job_id":null,"html_url":"https://github.com/andrenbrandao/bazel-cpp-boilerplate","commit_stats":null,"previous_names":["andrenbrandao/bazel-cpp-boilerplate"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/andrenbrandao/bazel-cpp-boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrenbrandao%2Fbazel-cpp-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrenbrandao%2Fbazel-cpp-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrenbrandao%2Fbazel-cpp-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrenbrandao%2Fbazel-cpp-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrenbrandao","download_url":"https://codeload.github.com/andrenbrandao/bazel-cpp-boilerplate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrenbrandao%2Fbazel-cpp-boilerplate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32427664,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T12:24:25.982Z","status":"ssl_error","status_checked_at":"2026-04-29T12:24:24.439Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["bazel","build-tool","cpp"],"created_at":"2025-06-09T17:06:29.520Z","updated_at":"2026-04-29T13:34:15.117Z","avatar_url":"https://github.com/andrenbrandao.png","language":"Starlark","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bazel-cpp-boilerplate\n\nBazel boilerplate with C++ and GoogleTest.\n\n## How to build and run\n\nFirst, make sure you have [Bazel](https://bazel.build/install) installed.\n\n```bash\nbazel build :all\n```\n\n```bash\nbazel run :hello_main\n```\n\n## Running the tests\n\n```bash\nbazel test --test_output=all :all\n```\n\n## Autocomplete with Neovim\n\nBecause we are using Bazel, `clangd` autocomplete in Neovim doesn't know where to find the headers. To fix it, I'm using [Hedron's Compile Commands Extractor for Bazel](https://github.com/hedronvision/bazel-compile-commands-extractor).\n\nExecute the following command to fix autocomplete when new dependencies are installed:\n\n```\nbazel run @hedron_compile_commands//:refresh_all\n```\n\n## Resources\n\n- [Bazel](https://bazel.build/) as the build tool.\n- [Google Test](https://google.github.io/googletest/) for testing.\n- [Abseil](https://abseil.io/) as an opensource collection of C++ libraries.\n- [Bazel Compile Commands Extractor](https://github.com/hedronvision/bazel-compile-commands-extractor) to support autocompletion in Neovim and IDEs.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrenbrandao%2Fbazel-cpp-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrenbrandao%2Fbazel-cpp-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrenbrandao%2Fbazel-cpp-boilerplate/lists"}