Most small businesses don't need a microservices architecture. They need a website that loads fast, an admin area they can actually use, and data they can trust. Over the past few years of building web apps for shops, cafes and other small businesses, I've settled on a simple structure that keeps projects maintainable without over-engineering them.
The stack
Next.js (React) for the public site and the admin dashboard
Node.js + Express.js for an API when the project needs one beyond Next.js API routes
MongoDB for flexible product/catalogue data, or MySQL when the data is strongly relational (invoices, ledgers)
Folder structure
my-shop/ βββ app/ # Next.js routes (public pages + /admin) β βββ (site)/ # home, products, contact β βββ admin/ # protected dashboard βββ components/ # shared UI βββ lib/ β βββ db.js # single database connection β βββ auth.js # session / role helpers β βββ validators.js # input validation schemas βββ models/ # data models (Product, Order, Customer) βββ services/ # business logicβ¦