Installation & Setup
Get the application running on your local machine for development or production deployment.
Prerequisites
- Node.js 18.x or later
- pnpm (Recommended package manager)
- PostgreSQL Database (Neon DB or local)
1. Clone the Repository
bash
git clone https://github.com/Mohammed-Musab-Khan/uzaif-inventory.git
cd uzaif-inventory2. Install Dependencies
We strictly use `pnpm` for dependency management to ensure fast, deterministic builds.
bash
pnpm install3. Environment Variables
Copy the example environment file and configure your database and authentication secrets.
bash
cp .env.example .env.localCritical Variables
Ensure
DATABASE_URL and BETTER_AUTH_SECRET are set correctly. The application will crash on boot if these are missing.4. Database Migrations
Push the Drizzle ORM schema to your PostgreSQL database.
bash
pnpm db:generate
pnpm db:migrate5. Start the Server
bash
pnpm devYour application will now be running at http://localhost:3000.

