Overview
The Full-stack Monorepo Boilerplate is a Lerna monorepo boilerplate designed to simplify the development process for full-stack projects. It combines Next.js for web development and React Native for mobile development, providing a comprehensive solution for building cross-platform applications.
Features
- TypeScript: The boilerplate is built using TypeScript, ensuring type-safety and improved developer productivity.
- Nx Cache: The use of Nx cache optimizes the build process by caching previously built artifacts, resulting in faster builds.
- Changelog with changesets: The boilerplate includes a changelog with changesets, making it easier to track and manage project updates and releases.
- ESLint and Prettier: ESLint and Prettier are integrated into the boilerplate, ensuring consistent code formatting and identifying potential issues early on.
- React Universal Tailwind: The boilerplate incorporates React Universal Tailwind, which enables the use of Tailwind CSS in both React Native and Next.js projects, streamlining the styling process.
- Prisma ORM: Prisma is included as the ORM for database interactions, providing an intuitive and performant data access layer.
- Packages compilation with Vite: The use of Vite for packages compilation optimizes the build process, resulting in faster and more efficient builds.
Installation
To install the Full-stack Monorepo Boilerplate, follow these steps:
- Clone the repository:
git clone <repository-url>
- Install the dependencies:
npm install
- Set up the environment variables:
cp .env.example .env
Modify the .env file according to your project requirements.
- Start the development server for the web application:
npm run dev:web
- Start the development server for the mobile application:
npm run dev:mobile
Summary
The Full-stack Monorepo Boilerplate is a powerful development tool for full-stack projects, combining Next.js and React Native in a monorepo structure. With features like TypeScript, Nx cache, changelog with changesets, ESLint and Prettier integration, React Universal Tailwind, Prisma ORM, and package compilation with Vite, it provides a robust foundation for efficient and scalable cross-platform application development. By following the installation guide, developers can quickly set up the boilerplate and start building their full-stack projects with ease.