A robust, real-time enabled backend service for product management and inventory control.
Backend PMS provides:
- Real-time inventory management with WebSocket integration
- Distributed caching with Redis
- Event-driven architecture for scalability
- Comprehensive health monitoring
- Automated background jobs
- Type-safe API endpoints
-
Product Management
- Publishing workflow
- Version control
- Asset management
-
Inventory Control
- Real-time stock updates
- Reservation system
- Low stock alerts
-
Order Processing
- State machine workflow
- Inventory validation
- Webhook notifications
-
Integration Points
- WebSocket events
- REST APIs
- Webhook system
- Background jobs
- ✅ Real-time inventory tracking
- ✅ Product management
- ✅ WebSocket integration
- ✅ Audit logging
- ✅ Automated notifications
- ✅ API key authentication
- Node.js & Express
- TypeScript
- Socket.IO
- PostgreSQL (Supabase)
- Clerk Authentication
node >= 18
pnpm >= 8
- Clone repository
- Copy environment variables:
cp .env.example .env
- Install dependencies:
pnpm install
- Start development server:
pnpm dev
See Environment Configuration for details.
POST /api/pms/products/create // Create product
PUT /api/pms/products/:id/publish // Publish product
GET /api/pms/inventory/alerts // Stock alerts
socket.on('subscribe_inventory', (productId: string))
socket.on('inventory_update', (data: InventoryUpdate))
Full API documentation available in API.md
pnpm dev # Start development server
pnpm build # Build for production
pnpm start # Start production server
pnpm test # Run tests
See Testing Documentation for details on:
- Unit tests
- Integration tests
- WebSocket testing
Production deployment instructions available in Deployment Guide
- ✅ Render
- ✅ Railway
- ✅ DigitalOcean
- ✅ Custom VPS
- Repository: Inventra Frontend
- Documentation: Integration Guide
- Repository: Storefront
- Documentation: Storefront Integration
src/
├── config/ # Configuration files
├── controllers/ # Route controllers
├── middleware/ # Express middleware
├── routes/ # API routes
├── services/ # Business logic
├── types/ # TypeScript types
└── utils/ # Utility functions
- Fork repository
- Create feature branch
- Commit changes
- Push to branch
- Open pull request
MIT License - see LICENSE for details
- Documentation: /docs
- Issues: GitHub Issues
- Security: SECURITY.md