Installation¶
Get started with the Petfolio monorepo in just a few steps.
Prerequisites¶
Ensure you have the following installed:
- Node.js 22.x or higher
- npm 10.x or higher
- Git 2.40 or higher
- Python 3.9+ (for MkDocs documentation)
- Docker 24.x (for containerized development)
- Visual Studio Code (recommended IDE)
- Playwright browsers (for e2e testing)
Clone the Repository¶
Install Dependencies¶
Node.js Dependencies¶
This will install all dependencies for the monorepo, including:
- Next.js and React
- Material UI components
- Nx CLI and plugins
- Testing frameworks (Jest, Playwright)
- Development tools
Python Dependencies (for Documentation)¶
# Navigate to docs directory
cd apps/petfolio-docs
# Install MkDocs and plugins
pip install -r requirements.txt
# Or using a virtual environment (recommended)
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
Verify Installation¶
Check that everything is installed correctly:
Expected output:
First Build¶
Build the entire monorepo to ensure everything works:
# Build all projects
npx nx run-many --target=build --all
# Or just build the main app
npx nx build petfolio-business
!!! success "Installation Complete!" You're ready to start developing! Check out the Quick Start guide next.
Troubleshooting¶
Python not found?
Download Python from python.org or use a package manager:
Next Steps¶
- Quick Start Guide - Run your first commands
- Development Workflows - Learn common development tasks
- Architecture Overview - Understand the codebase structure