Skip to content

jmedina21/Foogle-Client

Repository files navigation

Foogle - Front End

Welcome to the front end of Foogle.foo! This React application, built with Vite. It centralises listing of eBay, Craigslist and Facebook Marketplace making it easier for users to compare similar second hand products

Table of Contents

Features

  1. Product Listings: Users can view the product listings from Craigslist, eBay, and Facebook Marketplace. These listings are fetched from the server side using API calls.

  2. User Authentication: Users can sign up and log in to their accounts. This ensures a personalized experience and access to saved products.

  3. Saved Products: Users can save products they are interested in. These saved products are stored on the server side and can be managed through the UI.

Technologies Used

  • React
  • Vite
  • Sass
  • Axios
  • Typescript

Getting Started

  1. Clone the repository:
  1. Install dependencies:
npm i
  1. Set the API base URL to your locale server URL:

  2. Run the development server:

npm run dev

API Usage

Axios is used to make API calls to the server side. API endpoints can be found in the server's documentation.

Example usage:

import axios from 'axios';

const fetchListings = async () => {
  try {
    const response = await axios.get(`${apiURL}/listings/craigslist?search=${searchItem}`);
    return response.data;
  } catch (error) {
    console.error('Error fetching listings:', error);
  }
};

Contributing

Contributions to this project are welcome! If you find a bug or want to add a new feature, feel free to open an issue or submit a pull request.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published