Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```