This is a sample monorepo setup that includes:
- A Next.js frontend
- Two backend services using Hono and Express
- A shared UI package using shadcn/ui
Feel free to use this as a starting point for your own projects. Suggestions and improvements are always welcome.
Clone the repository and install dependencies:
git clone https://github.com/9is-z/monorepo.git
cd monorepo
pnpm installNote: After cloning, you can safely delete the
.gitfolder and initialize your own
To start all apps in development mode:
pnpm devThis runs the frontend and both backends concurrently.
To build the entire project (frontend + both backends), run:
pnpm buildThe UI components from shadcn/ui are organized as a separate package inside the monorepo. To add new components:
cd packages/ui
pnpm dlx shadcn@latest add buttonYou can add more components the same way. This setup keeps your design system modular and reusable.
Pull requests are welcome! Feel free to open an issue for bugs, questions, or feature requests.