skip to content
alanvdev
built
JAVASPRING

comercializadora

a sales system in three modules: the domain, the models behind their interfaces, and the REST API. customers, orders, products, delivery notes.

An administrative sales system for a distribution company, built at school: customers, products, orders, sales and delivery notes.

What separates it from a class exercise is how it is split. It is not one repository, it is three: the domain lives in its own artifact and the other two consume it as a dependency, instead of copying the entities from one side to the other.

Everything against interfaces, not implementations

Each model sits behind its interface (IModeloCliente, IModeloPedido, IModeloProducto, IModeloVenta), and even the database connection sits behind IConexionBD. Changing how data is stored does not force a change in whoever asks for it.

A facade between REST and the models

The REST resources do not talk to the models directly: they go through FachadaModelo. It is a single entry point into the logic, and it leaves the controllers doing the only thing they should, which is translating HTTP.

This is the Java you can actually read

The Java I wrote professionally (Spring Boot microservices, API Gateway, Spring Security) is private. This one is not. It is from 2023 and it is school work, but it is open, and it shows how I separate layers when nobody is watching.