Travel Buddy is a web application designed to help users discover nearby places to travel. It utilizes geolocation to find the nearest places and allows users to add them to their favorites list.
- Nearby Places: Displays a list of nearby places based on the user's current location.
- Favorites List: Users can add places to their favorites list for quick access.
- Simple Interface: Clean and intuitive user interface designed for ease of use.
-
Frontend:
- Vite
- Vanilla React
- HTML5/CSS3
-
Backend:
- Node.js
- Express.js
-
Clone the repository:
git clone https://github.com/enesctnn/Travel_Buddy
-
Navigate to the project directory:
cd Travel_Buddy
-
Install dependencies for frontend:
npm install
-
Install dependencies for backend:
cd backend npm install
-
Start the backend server:
cd backend node app.js
The backend server will start running on
http://localhost:3000
. -
Start the frontend development server:
npm run dev
The frontend development server will start running on
http://localhost:5173
. -
Open your web browser and go to
http://localhost:5173
to access the Travel Buddy app.
Sure, here's a simplified version with just the dependencies and devDependencies:
- @types/react:
- @types/react-dom:
- @vitejs/plugin-react:
- eslint:
- eslint-plugin-react:
- eslint-plugin-react-hooks:
- eslint-plugin-react-refresh:
- vite:
- GET /places: Retrieves a list of places with their details including id, title, image, latitude, and longitude.
- GET /user-places: Retrieves the user's favorites list.
- PUT /user-places: Adds a place to the user's favorites list.
Contributions are welcome! Please feel free to submit a pull request.
- This project was inspired by the desire to help travelers find interesting places nearby.
- Thanks to Vite, React, Node.js, and Express.js for making development easier.