This is the frontend application for the Travels API, which allows users to manage their travel experiences. The application enables users to register, log in, view, create, edit, and delete travel entries. It is built using React, and it communicates with the backend API to perform various operations related to user and travel management.
User Management:
-
User registration and login.
-
Store user authentication token in localStorage.
Travel Management:
-
View all travels with pagination.
-
Create new travel entries.
-
Edit existing travel entries.
-
Delete travel entries.
-
View travel details.
-
Restrict edit and delete options to the travel entries created by the logged-in user.
Search Functionality:
- Search for travels by title or location with results displayed on the homepage.
-
React (Frontend framework)
-
React Query (Data fetching and state management)
-
Axios (HTTP client for API requests)
-
React Router (Client-side routing)
-
SCSS (Styling)
-
Clone the repository
-
Navigate to the project directory
-
Install the dependencies:
npm install
Contributions are welcome. Please follow these steps:
-
Fork the project
-
Create a new branch:
git checkout -b feature/new-functionality
- Make your changes and commit them:
git commit -am 'Add new functionality'
- Push your changes to the branch:
git push origin feature/new-functionality
- Open a Pull Request
For the backend setup and more details about the API endpoints, refer to the Backend README.