$ show marmelab/ng-admin-demo
This is a deprecated AngularJS 1.x demo application showcasing the ng-admin library for creating admin interfaces. It simulates an e-commerce poster shop ('Posters Galore') with mock data generated by Node.js scripts. The application uses FakeRest to create a mock REST API in the browser, allowing full CRUD operations on customers, products, orders, reviews, and settings without a real backend. The admin interface includes dashboards, custom directives for shopping cart calculations, currency formatting, and image zoom functionality. The repository is marked as archived in the README with a warning that it's no longer maintained.
The LLM identified 3 files worth highlighting for reuse:
Provides custom Restangular request/response interceptors to transform API parameters and responses. Handles pagination (_page/_perPage to range), sorting (_sortField/_sortDir to sort arrays), and filtering (_filters to filter objects). Demonstrates clean adaptation of a frontend library to work with a non-standard API format, making it reusable in any Restangular-based project with similar API transformations.
A self-contained AngularJS directive that displays and calculates shopping cart totals. It fetches product details via Restangular, watches for quantity changes, and automatically updates tax, total, and subtotal calculations. Includes its own HTML template for rendering cart items with product thumbnails. Could be extracted to any e-commerce application with minimal changes as it only depends on having product data available through a REST API.
Extends ng-admin's NumberField to create a reusable currency field type with automatic symbol formatting (default: '$'). Encapsulates currency handling logic in a clean, extensible class that inherits from ng-admin's base field type. When paired with AmountFieldView.js, provides a complete solution for displaying and editing monetary values in ng-admin interfaces, demonstrating proper framework extension patterns.