/Travel_Buddy

Primary LanguageJavaScript

Travel Buddy App

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.

Features

  • 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.

Technologies Used

  • Frontend:

    • Vite
    • Vanilla React
    • HTML5/CSS3
  • Backend:

    • Node.js
    • Express.js

Installation

  1. Clone the repository:

    git clone https://github.com/enesctnn/Travel_Buddy
  2. Navigate to the project directory:

    cd Travel_Buddy
  3. Install dependencies for frontend:

    npm install
  4. Install dependencies for backend:

    cd backend
    npm install

Usage

  1. Start the backend server:

    cd backend
    node app.js

    The backend server will start running on http://localhost:3000.

  2. Start the frontend development server:

    npm run dev

    The frontend development server will start running on http://localhost:5173.

  3. 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:


Dependencies

  • react: npm
  • react-dom: npm

Dev Dependencies

  • @types/react: npm
  • @types/react-dom: npm
  • @vitejs/plugin-react: npm
  • eslint: npm
  • eslint-plugin-react: npm
  • eslint-plugin-react-hooks: npm
  • eslint-plugin-react-refresh: npm
  • vite: npm

API Endpoints

  • 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.

Contributing

Contributions are welcome! Please feel free to submit a pull request.

Acknowledgements

  • 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.