Prerequisites
Before you begin, ensure you have the following tools installed on your system:Required Tools
Node.js
Version 18 or higher required
pnpm
Version 9.0.0 for package management
MongoDB
Local or Atlas cluster for database
Git
For version control
Verify Installation
Check that you have the correct versions installed:Installation Steps
Set up environment variables
Create Then edit the
.env files for each application that requires configuration. Start by copying the example file:.env files with your actual values. See Environment Variables for details.Set up MongoDB
You’ll need a MongoDB instance. Choose one of the following options:Option 1: MongoDB Atlas (Cloud)Update your See Database Setup for more details.
- Create a free cluster at MongoDB Atlas
- Get your connection string and add it to your
.envfile
MONGODB_URI in .env:IDE Setup
VS Code (Recommended)
Install the following extensions for the best development experience:- ESLint - For code linting
- Prettier - For code formatting
- Tailwind CSS IntelliSense - For Tailwind class autocompletion
- TypeScript and JavaScript - Built-in, ensure it’s enabled
TypeScript Configuration
The monorepo uses TypeScript 5.9.2 with shared configurations:- Root
tsconfig.jsonfor workspace-wide settings - App-specific
tsconfig.jsonfiles extending the base config - Shared TypeScript configurations in
packages/typescript-config
Troubleshooting
pnpm install fails
If you encounter issues during installation:-
Clear the pnpm cache:
-
Delete
node_modulesand lock files:
Node version mismatch
If you see Node version errors, ensure you’re using Node 18 or higher:Next Steps
Running Locally
Learn how to start the development servers
Building
Understand the build process
Testing
Run tests and ensure code quality
Environment Variables
Configure environment variables