https://github.com/airtonix/golang-monorepo-template
Template repo for nx powered golang monorepos
https://github.com/airtonix/golang-monorepo-template
Last synced: about 2 months ago
JSON representation
Template repo for nx powered golang monorepos
- Host: GitHub
- URL: https://github.com/airtonix/golang-monorepo-template
- Owner: airtonix
- Created: 2022-06-26T09:10:53.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-08-21T03:41:01.000Z (almost 2 years ago)
- Last Synced: 2025-02-16T21:27:03.233Z (5 months ago)
- Language: Go
- Homepage:
- Size: 3.09 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# GoMonorepoNX
A Golang monorepo using nx.dev
- apps are in `apps`
- packages are in `packages`
- build artifacts are in `dist/`# Setup
1. Clone repo
2. `./setup.sh` (this installs [asdf](https://asdf-vm.com/) and any plugins in `.tool-versions`, then installs the described tools)
3. `just help`# Usage
```shell
$ just help
```# Development
1. get setup ☝️
2. add nodejs deps only to root `package.json`
3. add go deps to individual `go.mod`
4. run `just pr-check`## Running Apps
```shell
$ just serve app-one
```## Generating Apps
```shell
$ just generate app mynewappname
```## Generating Packages
```shell
$ just generate lib mynewlibname
```## Nx
```shell
$ just nx ...
```## Other NX commands
You're free to execute nx commands directly `./node_modules/nx ...`