Skip to content

UserT101/book_exchange

Repository files navigation

"Book Exchange" Website

Purpose

This website was done with the purpose of connecting book enthusiasts. It is a marketplace for selling and buying books. Users can list their own books for sale, browse available listings, and contact sellers to arrange exchanges.

Prerequisites

Ensure you have a local server environment installed, such as XAMPP, WAMP, or MAMP, which includes PHP and MySQL. Database configuration - you need to create the database and tables.

Features

  • User Authentication:
    • Login functionality(access to "add a book" is restricted to logged in users
    • User registration
  • Book management:
    • Add books - with title, author, category etc.
    • Image Upload - adding the book cover
  • Responsive desing:
    • Implemented using Bootstrap 5.3 and W3.CSS for mobile-friendly input.
  • Location/map integration:
    • Embedded OpenStreetMap showing the physical location of the exchange hub

Technology stack

  • Frontend: HTML5, CSS3, Bootstrap 5.3, W3.CSS.

  • Backend: PHP (Session handling, PDO/MySQLi connections).

  • Database: MySQL (Stores user data and book information, including images as BLOBs).

  • Server: Apache (XAMPP recommended).

Project Structure

  • index.php - The homepage containing the login section, search bar, categories, and recent books
  • register.php - Handles new user sign-ups
  • search.php - logic for filtering books by category or keyword.
  • book_model.php - displays specific details for a single selected book.
  • image.php - A helper script that retrieves image data from the database and renders it as an image file.
  • about.php - Information about the project, the team, and contact details.

Developer: Draghici Paul-Adrian

About

This project is meant to be a helping hand for book enthusiasts. Its purpose is to facilitate book transactions, where users can upload their books to sell them.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors