How jomaroto/tani-front works
Project type and purpose
• This is a single‑page, full‑client Angular application (“FrontEnd TANI”) that provides the user interface for the TANI web system. It handles authentication, product browsing, shopping cart (“carrito”), order placement (“pasarela”), profile management, and an admin back‑office. It talks to a separate RESTful backend for data and persistence.
File structure
• Top‑level Angular configuration files (angular.json, tsconfig.json), environment configs (src/environments), and assets.
• src/app contains:
• _helpers: interceptors (JWT, error), guards, a fake‑backend initializer for local development.
• _models: domain objects (Account, Product, Pedido, etc.).
• _services: HTTP services mapping models to backend endpoints (account.service, product.service, pedido.service).
• _components: shared UI pieces (Alert).
• Feature modules:
– account (login/register flows)
– admin (accounts management, overview)
– home, product (listing & CRUD), carrito, pasarela, profile, terms
• App routing and root app.module.