Bookish is an online platform that allows users to buy, sell, rent, and discover books. It offers physical books, e-books, audiobooks, poetry promotion, and custom orders, making it the perfect destination for book lovers.
- Browse and purchase books from a vast collection.
- Secure payment options for a smooth transaction experience.
- Rent books for a specified time period with flexible options.
- View and manage rentals through the user account dashboard.
- Download or stream a wide range of audiobooks and e-books.
- A dedicated section for poets and poetry enthusiasts.
- Users can publish and explore poetry content.
- Users can place custom orders for unavailable books.
- Track the progress of custom orders through the account dashboard.
- Manage users, book inventories, sales, rentals, and custom orders.
- Comprehensive statistics on total users, books bought, rented, sales, orders, e-books, and audiobooks.
- Frontend: HTML, CSS, JavaScript
- Backend: PHP
- Database: MySQL
- Server: XAMPP (Apache, MySQL, PHP, Perl)
-
Users Table
id,fname,lname,username,email,password,dt,image
-
Buy Items Table
- Contains details of books purchased by users.
-
Rent Items Table
- Contains details of books rented by users.
-
Sales Table
- Records all sales transactions.
-
Orders Table
- Custom orders placed by users.
-
Ebooks Table
- List of e-books available for purchase or rent.
-
Audiobooks Table
- List of audiobooks available for streaming or purchase.
- XAMPP Server (Apache, MySQL, PHP, Perl)
Download and install XAMPP to run the local server for the project.
-
Clone the repository:
git clone https://github.com/YourUsername/Bookish.git
-
Move the project to the XAMPP
htdocsfolder:Move the cloned project folder to your XAMPP installation directory under the
htdocsfolder (typically located atC:/xampp/htdocs/).C:/xampp/htdocs/Bookish
-
Start XAMPP Server:
- Open the XAMPP Control Panel.
- Start the Apache and MySQL modules.
-
Set up the database:
- Open phpMyAdmin by going to
http://localhost/phpmyadmin/in your browser. - Create a new database called
bookish_db. - Import the
bookish_db.sqlfile located in thedatabase/folder of the project.
- Open phpMyAdmin by going to
-
Configure the database connection:
- Open the
config.phpfile in the project directory. - Update the following values with your MySQL credentials:
$dbHost = 'localhost'; $dbUsername = 'root'; // Change if you have a different username $dbPassword = ''; // Change if you have a MySQL password $dbName = 'bookish_db';
- Open the
-
Run the application:
- Open your browser and go to
http://localhost/Bookishto access the Bookish! platform.
- Open your browser and go to
We welcome contributions! Feel free to fork the repository, work on a feature, and submit a pull request. Here's how you can contribute:
- Fork the repo.
- Create a new branch (
git checkout -b feature-name). - Commit your changes (
git commit -m 'Add new feature'). - Push to the branch (
git push origin feature-name). - Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
This version of the README includes instructions on how to use XAMPP for running the project. It also provides detailed steps for setting up the environment and database. Feel free to modify or expand upon it as needed!