{"id":13452330,"url":"https://github.com/siberex/bazel-nestjs-starter","last_synced_at":"2025-03-23T19:34:06.678Z","repository":{"id":36843938,"uuid":"191185993","full_name":"siberex/bazel-nestjs-starter","owner":"siberex","description":"Example of Bazel build config for NestJS app","archived":false,"fork":false,"pushed_at":"2023-01-07T06:15:18.000Z","size":1872,"stargazers_count":20,"open_issues_count":37,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-28T18:54:21.661Z","etag":null,"topics":["bazel","build","docker","js","nest","nestjs","nodejs","rules-nodejs","ts","typescript"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/siberex.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}},"created_at":"2019-06-10T14:40:53.000Z","updated_at":"2022-10-30T02:30:09.000Z","dependencies_parsed_at":"2023-01-17T05:45:46.515Z","dependency_job_id":null,"html_url":"https://github.com/siberex/bazel-nestjs-starter","commit_stats":null,"previous_names":[],"tags_count":16,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siberex%2Fbazel-nestjs-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siberex%2Fbazel-nestjs-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siberex%2Fbazel-nestjs-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siberex%2Fbazel-nestjs-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/siberex","download_url":"https://codeload.github.com/siberex/bazel-nestjs-starter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245159306,"owners_count":20570359,"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":["bazel","build","docker","js","nest","nestjs","nodejs","rules-nodejs","ts","typescript"],"created_at":"2024-07-31T07:01:20.807Z","updated_at":"2025-03-23T19:34:06.372Z","avatar_url":"https://github.com/siberex.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"![Bazel at Scalio](https://raw.githubusercontent.com/scalio/bazel/master/assets/scalio-bn.svg?sanitize=true)\n\n\u003ch1 align=\"center\"\u003eBazel Nest Starter\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  A starter app written in Typescript for \u003ca href=\"https://nestjs.com/\"\u003eNestJS\u003c/a\u003e -- built \u003cb\u003eusing \u003ca href=\"https://bazel.build/\"\u003eBazel\u003c/a\u003e\u003c/b\u003e\n\u003c/p\u003e\n\n\u0026nbsp;\n## Overview\n\nThis project was created by invoking the default Nest app scaffold via the Nest CLI, and then the addition of simple `BUILD.bazel` and `WORKSPACE` files, making use of [rules_nodejs](https://github.com/bazelbuild/rules_nodejs/#quickstart).\n\nTo create this from scratch in a new project, run the following:\n\n```bash\nnest new AppName\nyarn create @bazel APP_NAME --packageManager=yarn --typescript\n```\n\nand now add the files `WORKSPACE` and `src/BUILD.bazel` to your new directory root and `src` folders, respectively.\n\n## Build and run\n\nWith Bazel installed:\n\n```bash\nbazel run //src:server\n```\n\nWithout Bazel installed:\n\n```bash\nyarn install -D\nyarn bazel:run\n```\n\n## Docker\n\nBuild Docker image:\n\n```bash\nbazel build --platforms=@build_bazel_rules_nodejs//toolchains/node:linux_amd64 //src:docker\n```\n\nPush image to the registry (currently set to `gcr.io`):\n\n```bash\nbazel run --define push_tag=${IMAGE_TAG} --define push_repository=${REPOSITORY} //src:push_container\n```\n\n## Credits\n\nCreated by [@siberex](https://github.com/siberex/) @ [Scalio](https://scal.io/)\n\n\n## About us\n\u003cp align=\"center\"\u003e\n    \u003cbr/\u003e\n    \u003ca href=\"https://scal.io/\"\u003e\n        \u003cimg src=\"https://raw.githubusercontent.com/scalio/bazel/master/assets/scalio-logo.svg?sanitize=true\" /\u003e\n    \u003c/a\u003e\n    \u003cbr/\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiberex%2Fbazel-nestjs-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsiberex%2Fbazel-nestjs-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiberex%2Fbazel-nestjs-starter/lists"}