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

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

Awesome Lists containing this project

README

          

# AI Monorepo

[![Ask DeepWiki](https://deepwiki.com/badge.svg)](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 checking

After 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)