Loading repository data…
Loading repository data…
Sultonisky / repository
BuDi – Book Store Website A fully responsive digital book store website with an admin dashboard and role-based permissions, built using HTML, CSS, JavaScript, PHP, MySQL Prepared Statements, and Bootstrap 5.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
A modern, feature-rich e-commerce bookstore web application with role-based access control, built using PHP, MySQL, and Bootstrap 5.
BuDi Book Store is a comprehensive e-commerce platform designed specifically for digital books. The application provides separate interfaces for administrators and customers, with robust role-based access control. Admins can manage products, orders, users, and view detailed analytics, while customers can browse products, manage their shopping cart, and place orders seamlessly.
| Technology | Purpose |
|---|---|
| PHP | Backend server-side scripting |
| MySQL | Database management |
| Bootstrap 5 | Frontend framework |
| Bootstrap Icons | Icon library |
| jQuery | JavaScript library |
| HTML5/CSS3 | Structure and styling |
Budi-BookStore/
│
├── admin/ # Admin panel
│ ├── dashboard.php # Admin dashboard
│ ├── products.php # Product management
│ ├── orders.php # Order management
│ ├── users.php # User management
│ ├── contact.php # Message management
│ ├── edit.php # Edit functionality
│ ├── delete.php # Delete functionality
│ └── header.php # Admin header
│
├── user/ # User interface
│ ├── home.php # Homepage with featured products
│ ├── shop.php # Product catalog
│ ├── cart.php # Shopping cart
│ ├── checkout.php # Checkout process
│ ├── orders.php # Order placement
│ ├── order_list.php # Order history
│ ├── search_page.php # Search functionality
│ ├── contact.php # Contact form
│ ├── about.php # About page
│ ├── header.php # User header
│ └── footer.php # User footer
│
├── css/ # Stylesheets
│ └── style.css # Custom styles
│
├── js/ # JavaScript files
│ └── script.js # Custom scripts
│
├── img/ # Static images
│ └── book/ # Book cover images
│
├── uploaded_img/ # User-uploaded product images
│
├── config.php # Database configuration
├── login.php # Login page
├── register.php # Registration page
├── logout.php # Logout functionality
└── README.md # Project documentation
Clone or Download the Repository
git clone https://github.com/yourusername/Budi-BookStore.git
# or download as ZIP and extract
Move to XAMPP htdocs Directory
# Copy the Budi-BookStore folder to:
C:\xampp\htdocs\Budi-BookStore
# or
/Applications/XAMPP/htdocs/Budi-BookStore (Mac)
# or
/opt/lampp/htdocs/Budi-BookStore (Linux)
Configure Database
http://localhost/phpmyadminImport Database
db_book_storeVerify Installation
http://localhost/Budi-BookStore/Execute the following SQL commands in phpMyAdmin or MySQL command line:
-- Create Database
CREATE DATABASE IF NOT EXISTS db_book_store;
USE db_book_store;
-- Users Table
CREATE TABLE IF NOT EXISTS users (
id INT AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(100) NOT NULL,
email VARCHAR(100) NOT NULL UNIQUE,
password VARCHAR(255) NOT NULL,
role ENUM('user', 'admin') DEFAULT 'user',
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
-- Products Table
CREATE TABLE IF NOT EXISTS products (
id INT AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(255) NOT NULL,
price DECIMAL(10, 2) NOT NULL,
image VARCHAR(255) NOT NULL,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
-- Cart Table
CREATE TABLE IF NOT EXISTS cart (
id INT AUTO_INCREMENT PRIMARY KEY,
user_id INT NOT NULL,
name VARCHAR(255) NOT NULL,
price DECIMAL(10, 2) NOT NULL,
quantity INT NOT NULL DEFAULT 1,
image VARCHAR(255) NOT NULL,
FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE
);
-- Orders Table
CREATE TABLE IF NOT EXISTS orders (
id INT AUTO_INCREMENT PRIMARY KEY,
user_id INT NOT NULL,
name VARCHAR(100) NOT NULL,
email VARCHAR(100) NOT NULL,
method VARCHAR(50) NOT NULL,
address VARCHAR(255) NOT NULL,
total_products INT NOT NULL,
total_price DECIMAL(10, 2) NOT NULL,
placed_on TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
payment_status ENUM('pending', 'completed') DEFAULT 'pending',
FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE
);
-- Messages Table
CREATE TABLE IF NOT EXISTS messages (
id INT AUTO_INCREMENT PRIMARY KEY,
user_id INT NOT NULL,
name VARCHAR(100) NOT NULL,
email VARCHAR(100) NOT NULL,
number VARCHAR(20) NOT NULL,
message TEXT NOT NULL,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE
);
INSERT INTO users (name, email, password, role)
VALUES ('Admin', 'admin@budi-bookstore.com', '$2y$10$YourHashedPasswordHere', 'admin');
Note: Replace
$2y$10$YourHashedPasswordHerewith a properly hashed password. Use the registration page to create an admin account, or use PHP'spassword_hash()function.
Registration
register.phpLogin
login.phpBrowse Products
Add to Cart
Checkout
View Orders
Login as Admin
Manage Products
Manage Orders
Manage Users
Analytics
password_hash() and password_verify()Add screenshots of your application here (if available)
- Admin Dashboard
- Product Management
- Shopping Cart
- Checkout Process
- Order Management
Contributions are welcome! Please follow these guidelines:
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)This project is licensed under the MIT License - see the LICENSE file for details.
BuDi Development Team
For support, email support@budi-bookstore.com or create an issue in the GitHub repository.
Made with ❤️ by BuDi Development Team
⭐ Star this repo if you find it helpful!