MyBarber is a web application designed to manage barber shop appointments and customer information. The project utilizes HTML, CSS, and JavaScript for the front end, PHP for the backend, and MySQL for the database. The application can be run on any PC using XAMPP.
- User Registration and Login: Allows customers to create an account and log in.
- Appointment Booking: Customers can book, view, and cancel appointments.
- Admin Dashboard: Barbershop admin can view all appointments, manage customers, and update shop information.
- Responsive Design: The application is accessible on various devices, including desktops, tablets, and smartphones.
-
Frontend:
- HTML
- CSS
- JavaScript
-
Backend:
- PHP
-
Database:
- MySQL
-
Development Environment:
- XAMPP (Apache, MySQL, PHP)
- XAMPP (Download and install from XAMPP official website)
-
Clone the Repository:
git clone https://github.com/Chitransh1234/myBarber.git
-
Start XAMPP:
- Open XAMPP Control Panel.
- Start Apache and MySQL services.
-
Setup the Database:
- Open phpMyAdmin by navigating to
http://localhost/phpmyadmin
in your web browser. - Create a new database named
mybarber
. - Import the database schema by uploading the
mybarber.sql
file located in thedatabase
folder of the cloned repository.
- Open phpMyAdmin by navigating to
-
Configure the Project:
-
Place the cloned repository in the
htdocs
folder of your XAMPP installation (e.g.,C:\xampp\htdocs\mybarber
). -
Open the
config.php
file located in theincludes
folder of the project. -
Update the database configuration to match your setup:
<?php $servername = "localhost"; $username = "root"; $password = ""; $dbname = "mybarber"; ?>
-
-
Run the Application:
- Open your web browser and navigate to
http://localhost/mybarber
. - You should see the homepage of the MyBarber application.
- Open your web browser and navigate to
-
Register as a New User:
- Click on the "Register" button on the homepage.
- Fill in the required details and submit the form.
-
Log in as an Existing User:
- Click on the "Login" button on the homepage.
- Enter your username and password to log in.
-
Book an Appointment:
- Once logged in, navigate to the "Book Appointment" section.
- Select the desired date, time, and service.
- Submit the form to book the appointment.
-
Admin Access:
- Admin can log in using admin credentials.
- Admin can view all appointments, manage users, and update shop information from the admin dashboard.
We welcome contributions to improve MyBarber. Please follow these steps to contribute:
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature-name
). - Make your changes.
- Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature/your-feature-name
). - Open a pull request.
This project is licensed under the MIT License.
For any questions or suggestions, please contact:
- Email: chitranshjain2025@gmail.com
- GitHub: Chitransh1234
This README file provides a comprehensive overview of the MyBarber project, including installation instructions, usage guidelines, and contribution details. Adjust the placeholders with your actual information before using it.