https://github.com/rifandani/be-monorepo
BE Monorepo Template
https://github.com/rifandani/be-monorepo
Last synced: about 1 month ago
JSON representation
BE Monorepo Template
- Host: GitHub
- URL: https://github.com/rifandani/be-monorepo
- Owner: rifandani
- Created: 2025-08-09T04:28:08.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2025-08-09T08:30:15.000Z (about 2 months ago)
- Last Synced: 2025-08-09T10:14:00.803Z (about 2 months ago)
- Language: TypeScript
- Size: 12.9 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# AI Monorepo
[](https://deepwiki.com/rifandani/be-monorepo)
## 🎯 Todo
- [ ] Consider using Bun `catalog` to manage monorepo dependencies (waiting for bun updates, to support updating catalog when running `bun update --latest`)
- [ ] create [`AGENTS.md`](https://agents.md/) file in root dir and subpackage inside monorepo## 📝 Note
~
## 📦 Prerequisite
- Node >=24.4.1
- Bun >=1.2.21## 🛠️ Upgrading Dependencies
- Remember to always use EXACT version for each dependency
- Run `bun bump-deps` to check for outdated dependencies, then run `bun install` to install it
- Run `bun hono test` to run tests
- Run `bun hono build` to build with development env
- Run `bun lint-typecheck` for linting and type checkingAfter making sure all changes are checked, run `bun cs` to create a new changeset and `bun cs:v` to version the changeset.
## 📝 Environment Variables
For first timer, you need to create the 2 environments in your github repo.
First is `dev` environment, and second is `prod` environment (that's why in `.github/workflows/ci.yml` we stated `environment: dev`).
In both environments, name it `SPA_ENV_FILE` and `WEB_ENV_FILE` (that's why in `.github/workflows/ci.yml` we stated `secrets.SPA_ENV_FILE` and `secrets.WEB_ENV_FILE`).The value for `SPA_ENV_FILE` in `dev` environment is `.env.dev`, and the value for `SPA_ENV_FILE` in `prod` environment is `.env.prod` for `@workspace/spa`.
The value for `WEB_ENV_FILE` in `dev` environment is `.env.dev`, and the value for `WEB_ENV_FILE` in `prod` environment is `.env.prod` for `@workspace/web`.Everytime there is a change in the local env variables, you need to also update the env variables in the github repo.
## 📱 Apps
### @workspace/hono
[See here](./apps/hono/README.md)
## 📦 Packages
### @workspace/core
[See here](./packages/core/README.md)
### @workspace/typescript-config
[See here](./packages/typescript-config/README.md)