Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/airtonix/golang-monorepo-template
Template repo for nx powered golang monorepos
https://github.com/airtonix/golang-monorepo-template
Last synced: 10 days 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 (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-08-21T03:41:01.000Z (over 1 year ago)
- Last Synced: 2024-05-21T03:17:27.325Z (8 months ago)
- Language: Go
- Homepage:
- Size: 3.09 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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 ...`