This repository demonstrates a monorepo managed by Lerna, containing a Next.js app, a shared UI package, and Firebase integration.
The monorepo is organized into the following packages:
- frontend: A Next.js web application that consumes components from the UI package.
- ui: A collection of reusable UI components, built with React and TypeScript.
- core: A collection of reusable core functions, hooks, etc.
- functions: Serverless functions using Firebase Functions, providing backend services for the Next.js app.
- Hygen boiler plate code generator
- Testing library
- Storybook
- i18n cached
Follow these steps to set up the monorepo:
- Node.js 16.19.x or later
- Firebase CLI (optional, for deploying Firebase Functions)
- Clone the repository:
git clone https://github.com/JakubKontra/lerna-monorepo-firebase-next.git
cd lerna-monorepo-firebase-next
- Install the Lerna CLI globally:
npm install -g lerna