This is the frontend for the Equitel project. It is built using React. It is a single page application that consumes the Equitel API. It is a work in progress.
- React
- React Router
- Axios
To get started with this repository, follow these steps:
- Clone the repository to your local machine:
git clone https://github.com/your-username/your-repo.git
- Install the required dependencies using npm:
npm install
npm start
This will start the development server and open the application in your default browser.
The application has a login page. You can use the following credentials to log in:
- Username:
admin
- Password:
123456
The application is structured as follows:
src/
contains the source code for the applicationsrc/api
contains the API calls used in the applicationsrc/auth
contains the authentication logic used in the applicationsrc/components/pages
contains the pages used in the applicationsrc/components/styles
contains the styles used in the applicationsrc/hooks
contains custom hooks used in the applicationsrc/routes
contains the routes used in the applicationsrc/utils
contains utility functions used in the applicationApp.tsx
is the entry point for the applicationindex.tsx
is the entry point for the application
In this file, you look at the API documentation for the Equitel API. We have the following endpoints:
/login
- This endpoint is used to log in a user. It takes a username and password and returns a token./users
- This endpoint is used to get a list of users./products
- This endpoint is used to get a list of products./provider
- This endpoint is used to get a list of providers./rol
- This endpoint is used to get a list of roles.
In each of these endpoints, we have the following methods:
GET
- This method is used to get a list of items.POST
- This method is used to create a new item.PUT
- This method is used to update an item.DELETE
- This method is used to delete an item.
All endpoints have different functions that perform operations like creating, editing, and deleting users, products, and vendors. Make a sale and display information about changes made to products