A demo of a monorepo using Bun + Elysia.js + Next.js + React Native Expo + Drizzle ORM.
This monorepo includes the following packages/apps:
-
JavaScript runtime:
-
backend
: -
web
: -
mobile
:- React Native Expo
- expo-router
-
backend-api
:- Eden a shared end-to-end type safety package.
This monorepo has some additional tools already setup for you:
- TypeScript for static type checking
- Biome.js for code formatting and linting. It is recommended to install the VS Code extension
To install and start developing all apps, run the following command:
# upgrade bun version
bun upgrade
bun i
bun dev
For more information, see the package.json
file.
DB migration:
bun gen
bun migrate
bun seed
Tested with Bun 1.1.8
.
# type check all packages
bun typecheck
# format all packages
bun format
# lint all packages
bun lint
Use npm-check-updates upgrades your package.json dependencies to the latest versions, ignoring specified versions.
-ws
flag means that Run on all workspaces. Add --root to also upgrade the root project.
.
bunx npm-check-updates -i -ws
If you see a error below, please try upgrading your Node.js version to the latest version.
internal/modules/cjs/loader.js:888
throw err;
^
Error: Cannot find module 'node:path'