An open-source inventory management system built with Next.js, Prisma, and Stack Auth. Easily track products, monitor stock levels, and gain insights with a modern dashboard.
- User authentication (Stack Auth)
- Dashboard with product statistics and charts
- Add, edit, and delete products
- Inventory search and pagination
- Responsive sidebar navigation
- Modern UI with Tailwind CSS
- Next.js (App Router)
- Prisma ORM & PostgreSQL
- Stack Auth for authentication
- Tailwind CSS for styling
- Recharts for data visualization
-
Install dependencies:
npm install # or yarn install -
Set up environment variables:
- Copy
.env.exampleto.envand set yourDATABASE_URL(PostgreSQL) and Stack Auth keys.
- Copy
-
Run database migrations:
npx prisma migrate dev --name init
-
Seed the database (optional):
npx tsx prisma/seed.ts
-
Start the development server:
npm run dev
Open http://localhost:3000 in your browser.
app/— Next.js app directory (pages, layouts, routes)components/— Reusable UI componentslib/— Auth, Prisma, and server actionsprisma/— Prisma schema and seed script
YouTube - NextJS 16 FullStack Course - Build an Inventory Management Website
