Ranchi --:-- ISTRecruiter

Eshop

Microservices e-commerce backend in an Nx monorepo, in early development. An API gateway sits in front of the services, starting with authentication.

Year
2025
Role
Full-stack developer
Status
In progress
Stack
TypeScript, Nx, Node.js, Express, Docker, GitHub Actions
misanthropic-codes/eshop
Eshop screenshot 1 of 1
Screenshot 1 of 1

Overview

Problem

I wanted to learn how a store splits into services (auth, catalogue, orders, payments) and what the gateway in front of them has to handle.

What I built

An Nx workspace with an Express API gateway and an auth service, a Dockerfile, and CI on GitHub Actions. The gateway allows only the storefront origin, rate-limits each IP (100 requests per 15 minutes), logs requests, and forwards them to the services behind it.

What I learned

Putting rules every service needs (CORS, rate limits, request logging) in the gateway once, instead of repeating them in each service.

What's next

Next: sign-up and sign-in in the auth service, then catalogue, cart and order services, and the storefront shown in the concept mock-up.

Features

What the product does today.

01
API gatewayOne entry point with CORS and request logging
02
Rate limitingPer-IP limits on every request
03
Service proxyRequests forwarded to the services behind it

Architecture

How a request moves through the stack. Hover or tap a layer.

ClientTypeScriptServerNode.jsExpressServicesNxDockerGitHub Actions

Each box is one layer of the app.

Request playgroundA request through the gateway
  1. 01ClientThe storefront sends a request to the gateway with its cookies.
  2. 02ServerCORS accepts only the storefront origin, with credentials.
  3. 03ServerThe rate limiter counts requests per IP and answers 429 over the limit.
  4. 04Serverexpress-http-proxy forwards the request to the service behind the gateway.
  5. 05ServicesThe service answers, and the gateway passes its response back.

Traced from apps/api-gateway/src/main.ts ↗

Live metrics

Pulled from GitHub, a request to the live site and Google Lighthouse. Refreshed automatically.

Repositoryeshop ↗TypeScript
Last push13 months ago5 Nov 2025
Created5 Nov 2025
Forks · stars0 · 0
Live siteNoneSource only

Links

See it running or read the code.

Next projectBlogityBlogging platform where writers sign in and publish posts with images, and readers can subscribe to a newsletter.