Prerequisites
Before you begin, ensure you have the following installed:- Node.js v20 or higher
- npm, yarn, or pnpm package manager
- PostgreSQL database (local or cloud-hosted)
You can check your Node.js version by running
node --version in your terminal.Installation Steps
Install dependencies
Install all required npm packages:This will install all dependencies including:
- Next.js 16.1.1 with React 19
- NextAuth.js v5 (beta) for authentication
- Prisma ORM for database management
- Tailwind CSS v4 for styling
- shadcn/ui components
The
postinstall script automatically runs prisma generate to generate the Prisma Client after installation.Key Dependencies
Core Framework
- Next.js 16.1.1 - React framework with App Router
- React 19.2.3 - UI library
- TypeScript 5 - Type-safe JavaScript
Authentication
- NextAuth.js 5.0.0-beta.30 - Authentication for Next.js
- @auth/prisma-adapter 2.11.1 - Prisma adapter for NextAuth
Database
- @prisma/client 6.19.2 - Prisma ORM client
- @prisma/extension-accelerate - Optional Prisma Accelerate extension
- prisma 6.19.2 - Prisma CLI (dev dependency)
UI Components
- Tailwind CSS 4 - Utility-first CSS framework
- shadcn/ui - Radix UI components (accordion, avatar, dropdown, label)
- lucide-react - Icon library
- recharts - Charting library
Testing
- Vitest 4.0.18 - Unit testing framework
- @testing-library/react - React testing utilities
Available Scripts
After installation, you can use these npm scripts:Troubleshooting
Node.js Version Issues
If you encounter errors during installation, verify your Node.js version:Installation Errors
Ifnpm install fails:
- Clear npm cache:
npm cache clean --force - Delete node_modules:
rm -rf node_modules package-lock.json - Reinstall:
npm install
Prisma Generation Fails
If thepostinstall script fails to generate Prisma Client:
DATABASE_URL in your .env file for this to work (see the next page).
Next Steps
Now that dependencies are installed, proceed to:- Environment Variables - Configure required environment variables
- Database Setup - Set up PostgreSQL and run migrations