StockPilot is a production-style full-stack inventory management platform designed to demonstrate scalable backend architecture, Redis caching, and containerized deployment using Docker Compose.
Built with a strong focus on performance, clean architecture, and real-world backend patterns.
- 🔐 JWT-based Authentication & Role-Based Access Control (RBAC)
- 📦 Complete Product Management (Create, Read, Update)
- ⚡ Redis Caching Layer for high-performance reads
- 🔄 Automatic Cache Invalidation on write operations
- 📊 Sales Analytics & Low-Stock Detection
- 🐳 Fully Dockerized Multi-Service Architecture
- 🧱 Modular Backend Structure (controllers/services/routes)
- 🎯 Production-style error handling and validation
- 💻 Clean React dashboard UI
Frontend (React)
↓
Backend (Node + Express)
↓
┌───────────────┬───────────────┐
│ │ │
MySQL Redis Cache JWT Auth
(Database) (Performance) (Security)
- Node.js
- Express.js
- MySQL
- Redis
- JWT Authentication
- REST APIs
- React.js
- Tailwind CSS
- Docker
- Docker Compose
- Git & GitHub
git clone https://github.com/znixxx30/Stockpilot.git
cd Stockpilotdocker compose up --build- Frontend: http://localhost:5173
- Backend API: http://localhost:5000
You can register a new admin user via the API or database.
Example login payload:
{
"email": "testadmin@test.com",
"password": "123456"
}StockPilot implements a read-through caching pattern:
-
Product list is cached in Redis
-
Cache TTL improves read performance
-
Cache automatically invalidates on:
- product creation
- product update
This ensures strong consistency + high performance.
Stockpilot/
├── stockpilot/ # Backend (Node + Express)
│ ├── src/
│ │ ├── controllers/
│ │ ├── services/
│ │ ├── routes/
│ │ ├── middlewares/
│ │ └── config/
│
├── stockpilot-frontend/ # React Frontend
├── docker-compose.yml
└── README.md
POST /api/auth/registerPOST /api/auth/login
GET /api/productsPOST /api/productsPUT /api/products/:id
The application runs using Docker Compose with:
- MySQL container
- Redis container
- Backend container
- Frontend container
This mirrors real production microservice setups.
- Backend system design fundamentals
- Caching and performance optimization
- Containerized deployment
- Clean REST API architecture
- Real-world debugging and integration skills
Anshuman Singh
Backend Developer | Node.js | Systems Enthusiast
Give the repo a star — it helps visibility!


