Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tranngoclam/monorepo
https://github.com/tranngoclam/monorepo
bazel bazelisk bufbuild docker docker-compose gazelle go monorepo protobuf
Last synced: 14 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/tranngoclam/monorepo
- Owner: tranngoclam
- Created: 2023-05-03T15:01:27.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-23T13:41:05.000Z (3 months ago)
- Last Synced: 2024-08-24T09:01:39.576Z (3 months ago)
- Topics: bazel, bazelisk, bufbuild, docker, docker-compose, gazelle, go, monorepo, protobuf
- Language: Starlark
- Homepage:
- Size: 115 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Monorepo
[![Continuous Integration](https://github.com/tranngoclam/monorepo/actions/workflows/ci.yaml/badge.svg)](https://github.com/tranngoclam/monorepo/actions/workflows/ci.yaml)
## Prerequisites
- Go 1.22+
- Bazelisk## Using Go Workspace
- Initialize `go.work`
```
go work init ./bar ./foo ./lib ./api
```- Sync modules in workspace
```
go work sync
```## Using Bazel
- Update BUILD files
```
bazel run //:gazelle
```- Sync go dependencies
```
bazel run //:gazellel-update-repos
```- Run tests
```
bazel test //...
```- Build binaries
```
bazel build //...
```- Run binary
```
bazel run //foo
bazel run //bar
```- Run all
```
tilt up
```