This is a full-stack Inventory Management system built with a TypeScript + Node.js backend and a React.js frontend.
client/— Frontend built using React.jsserver/— Backend built with Node.js, TypeScript, and Prisma ORM
- Node.js (v18+ recommended)
- npm
- PostgreSQL or your preferred database (used with Prisma)
- Navigate to the client folder:
cd client
- Install dependencies:
npm install
- Create a .env file in the client folder and add your environment variables.
NEXT_PUBLIC_API_BASE_URL=http://localhost:5000
- Run the development server:
npm run dev
- Navigate to the server folder:
cd server
- Install dependencies:
npm install
- Install development dependencies:
npm install -D ts-node typescript
- Create a .env file in the server folder and add your environment variables.
DATABASE_URL=your_database_url_here PORT=5000
- Generate Prisma client:
npx prisma generate
- Run database migrations:
npx prisma migrate dev --name add_data
- Start the backend server:
npx ts-node src/index.ts
Frontend: React.js, Tailwind CSS (if used)
Backend: Node.js, TypeScript, Express (if used), Prisma ORM
Database: PostgreSQL (or your configured DB)
Ensure your database is up and running before executing migrations.
Ports, API URLs, and other settings should be configured in the .env files.
You can customize the PORT in both client and server as needed.