The application is a single page application, it was structured from a Layout layer where the global styles of the page are.
A component which represents the main window, within it has two more components, the component of the list of products and the component with the Investors view, finally a component with the facility to edit the information of an investor.
There are 3 main calls to the backend:
- get_products_by_id brings all products given a user id
- get_investors_by_id brings all investors given a user id and a product id
- edit_investor edits the information of an investor
The routes used to obtain the data should be of type post, except for the route to modify the investor information, which should be put.
The get_products_by_id route should receive the current user information and return the information related to a product, such as: product_id, date, amount and status
The get_investors_by_id route should receive the current user information and the current product_id selected return the information related to a product, such as: id, investor_name, sold, purchased,left_amount and remaining
The edit_investor route should receive the information of the investor to be edited