Crud Components
@dile/crud is a package that contains components for easily creating dynamic CRUD systems with a rich user experience.
It is a collection of components designed generically so that adaptable CRUD systems can be created for most web services based on REST APIs.
Please note: this is a work in progress, so frequent changes are to be expected.
How to use the Crud Components
Using the CRUD components provided by this library is as simple as using web components, where you declaratively specify the functionalities you want to implement, directly in the HTML code.
There are components for making simple Ajax connections, forms that automatically submit via Ajax, components for performing insertions, updates, deletions or listings, and even complete CRUD systems. Each component is thoroughly detailed on its documentation page. Additionally, you will find various usage examples for each component to help you better understand how to implement them.
Based on Axios library
The CRUD components in this package are based on a well-known frontend library for making asynchronous connections to web services, called Axios.
You don't need to be familiar with the Axios library, as the CRUD components, especially the `dile-ajax` component, wrap that library.
Each project may require different Axios configurations, so this package is open to various setups to adapt to the needs of each application and web services.
CRUD Configuration
Due to the complexity of operations and the need to adapt to different types of projects, it is important to consider some configuration aspects.
- On the Axios Configuration page, you will find detailed information on how to configure this library to tailor requests to the requirements of your project or API.
- On the response adapter page, you will find detailed information on how to process JSON responses of your API REST, so that the CRUD components can find the data they need to function properly.
- On the request adapter page, you will find detailed information on how to adapt to the request data objects of your API REST.
- On the resource configuration object page, you will find information on how to configure the more complex components to adapt to the specific characteristics of the resources exposed by the API.
- On the actions configuration page, you will find information on how to configure batch actions.