Shakti OS V3 is an Enterprise-Grade ERP built to manage every aspect of the Shakti business, from the moment a product is conceptualized to the moment it is delivered to the customer, and finally, accurately tracked in the financial books.
- Web App: Next.js 15 (React, Tailwind CSS, Server Actions)
- API Engine: NestJS (Node.js, TypeScript)
- Database: PostgreSQL (via Prisma ORM 5)
- Deployment: Docker, Docker Compose, Nginx (Reverse Proxy)
- Identity Core: Role-based access control (RBAC), JWT HttpOnly auth.
- Products Core: Intelligent SKU generator, Variant mapping.
- Order Lifecycle Engine: Strict state machine validating transitions (
NEW->APPROVED->READY). - Production Engine: Supplier portal, batch auto-sync with orders.
- Shipping Engine: Fulfillment tracking and carrier management.
- Assets Engine (DAM): Structured digital asset management for marketing.
- Marketing Engine: Campaign tracking, Promo codes, and channel ROAS.
- Finance Engine (Source of Truth): Auto-sync expenses from production and shipping, tracking net profit and cashflow.
- Analytics Layer: Fast, on-the-fly aggregations of all company KPIs.
- Node.js (v20+)
- PostgreSQL
- Docker (optional for local, required for prod)
git clone <repo-url>
cd shakti-v3
npm installCopy the .env.example to .env and fill in your local Postgres URL and secret keys.
cp .env.example .envnpx prisma migrate dev --name init
npx prisma generateYou can run the API and Web apps simultaneously:
# Run NestJS API (Port 3001)
npm run start:dev -w apps/api
# Run Next.js Web App (Port 3000)
npm run dev -w apps/webThe repository includes a robust Docker-Compose configuration for deploying on a single VM.
- Refer to
scripts/deploy.shanddocker-compose.ymlfor automated setup. - Designed for Google Compute Engine VM (
e2-medium, Ubuntu 22.04).
Built meticulously for ultimate scalability.