Sign inSign up

70madmax07/ecommerce-api

By 70madmax07

•Updated 5 days ago

Production E-Commerce API built with Node 24 Alpine, MongoDB, Redis caching & WebSockets.

Image
API management
Web servers
0

49

70madmax07/ecommerce-api repository overview

⁠E-Commerce Platform REST API

A production-grade, containerized E-Commerce backend service built with Node.js 24 (Alpine), Express, MongoDB (Mongoose), Redis, and WebSockets. Engineered for high-throughput product catalogs, real-time inventory updates, and order workflows.

⁠Architecture & Features

  • Redis Look-Aside Caching: In-memory caching on high-frequency catalog endpoints (/api/v1/products) to reduce database load.
  • Cache Invalidation: Automated Redis cache purge routines triggered on product creation, updates, and inventory changes.
  • Real-Time Communication: WebSocket/Socket.io integration for instant order status transitions and live inventory notifications.
  • Transactional Integrity: Guards against race conditions and overselling during checkout operations.
  • Lightweight Footprint: Multi-stage build on node:24-alpine stripping development dependencies to keep the image minimal and secure.

⁠How to Run

⁠Standalone Container
docker run -d \
  --name ecommerce-api \
  -p 5000:5000 \
  -e PORT=5000 \
  -e NODE_ENV=production \
  -e MONGO_URI="mongodb+srv://<USER>:<PASSWORD>@cluster.mongodb.net/ecommerce?retryWrites=true&w=majority" \
  -e REDIS_HOST="your-redis-host" \
  -e REDIS_PORT=6379 \
  -e JWT_SECRET="your_jwt_secret" \
  70madmax07/ecommerce-api:latest

Tag summary

Content type

Image

Digest

sha256:0ec78453e…

Size

75.1 MB

Last updated

5 days ago

docker pull 70madmax07/ecommerce-api