Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Rampop01/HR-Platform/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before setting up HCMatrix, ensure you have the following installed:Node.js
Version 18.0 or higher required
Package Manager
pnpm, npm, or yarn
Installation
Install dependencies
Install all required packages using your preferred package manager:
The project includes over 50 dependencies including Next.js 16, React 19, and a comprehensive set of Radix UI components.
Configure environment variables
Create a Add the following environment variable:
.env.local file in the root directory:.env.local
Start the development server
Environment Variables
Required Variables
Base URL for the backend API server. All API requests are proxied through
/api/proxy/ to this endpoint.Example:Optional Variables
Currently, HCMatrix uses a minimal environment configuration. Additional variables can be added as needed for:- Database connections
- Third-party service integrations
- Feature flags
- Analytics tracking
Environment variables prefixed with
NEXT_PUBLIC_ are exposed to the browser. Use this prefix only for non-sensitive configuration.TypeScript Configuration
The project uses TypeScript 5.7.3 with strict mode enabled. Key compiler options fromtsconfig.json:2-30:
tsconfig.json
The
@/* path alias allows you to import from the root directory. For example: import { api } from '@/lib/api'Next.js Configuration
The application uses Next.js 16 with App Router. Configuration fromnext.config.mjs:2-9:
next.config.mjs
Image Optimization
Images are served unoptimized (unoptimized: true). This configuration is suitable for static exports but may impact performance in production.
Styling Configuration
Tailwind CSS
HCMatrix uses Tailwind CSS v4.2 with custom design tokens. The styling system includes:- CSS Variables: Theme colors defined in
globals.cssusing OKLCH color space - Dark Mode: Full dark mode support with
.darkclass - Custom Radius: Border radius defined via
--radiusvariable (0.625rem)
PostCSS Configuration
Frompostcss.config.mjs:2-6:
postcss.config.mjs
shadcn/ui Components
The project uses shadcn/ui components configured incomponents.json:1-21:
components.json
Available Scripts
Frompackage.json:5-10:
Key Dependencies
Framework & Core
- Next.js 16.1.6: React framework with App Router
- React 19.2.4: UI library with server components
- TypeScript 5.7.3: Type safety and developer experience
UI Components
- Radix UI: 25+ accessible component primitives
- Lucide React: Icon library
- Tailwind CSS 4.2: Utility-first CSS framework
Form & Validation
- react-hook-form 7.54.1: Form state management
- zod 3.24.1: Schema validation
- @hookform/resolvers 3.9.1: Form validation integration
Utilities
- date-fns 4.1.0: Date manipulation
- recharts 2.15.0: Chart visualization
- next-themes 0.4.6: Theme management
- sonner 1.7.1: Toast notifications
Troubleshooting
Port 3000 already in use
Port 3000 already in use
Change the port by running:
Module not found errors
Module not found errors
Clear cache and reinstall dependencies:
API connection failed
API connection failed
Verify
API_BASE_URL in .env.local is correct and the backend server is accessible.TypeScript errors during build
TypeScript errors during build
Build errors are currently ignored in
next.config.mjs. To see them:- Set
ignoreBuildErrors: false - Run
npm run build - Fix reported type errors
Next Steps
API Integration
Learn how to configure API endpoints and authentication
Settings
Configure platform settings and preferences
