This React application is designed to manage a list of dogs, providing functionalities such as fetching, creating, updating, and deleting dog entries. The application interacts with an external API to perform these operations.
To set up this project locally, follow these steps:
- Clone the repository to your local machine.
- Navigate to the project directory.
- Run
npm installto install all the necessary dependencies. - Once the dependencies are installed, you can start the application by running
npm start.
- Fetches dog data from an external API.
- Uses
axiosfor API calls. - Displays a loading spinner while data is being fetched.
- Allows the creation of new dog entries through a form.
- Submits new dog data to the API.
- Provides the ability to delete dog entries.
- Uses a confirmation dialog before deletion.
- Enables editing existing dog entries.
- Submits updated data to the API.
- Implements a search feature to filter dogs based on various attributes like name, breed, size, and color.
- Includes components like
Navbar,Dog, andFooter. - Utilizes
react-confirm-alertfor confirmation dialogs. - Implements
react-loader-spinnerfor loading indicators.
After starting the application, you can perform operations like creating, updating, and deleting dog entries. The main page displays all the dogs fetched from the API, and you can use the search bar in the navbar to filter the dogs.
- React
- axios
- react-confirm-alert
- react-loader-spinner
For more information on how to use each feature, please refer to the comments in the source code. Enjoy managing your dog database!