Coursaty is a dynamic website designed to offer a platform where users can register, log in, browse available courses, and manage their course enrollments. The site features a user-friendly interface built with a combination of PHP, JavaScript, Bootstrap, and CSS to ensure responsiveness and interactivity.
-
User Authentication:
- Secure login and registration system.
- Logout functionality.
-
Course Display:
- Courses are displayed in card format, providing an overview of each course.
- Users can browse and enroll in various courses.
-
My Courses:
- A dedicated page where users can view and manage their enrolled courses.
-
Profile Management:
- Users can view and update personal data on their profile page.
-
Password and Phone Number Validation:
- Password validation and visibility toggle using JavaScript for enhanced user experience.
- Phone number validation is implemented to ensure correct input format.
-
Database Integration:
- All user and course data is stored and managed using a backend database.
-
Responsive UI:
- Navbar and footer included across pages for easy navigation.
- Built with Bootstrap for responsive design on all device types.
- PHP (83.4%): Powers the server-side logic and handles dynamic content generation and database interactions.
- JavaScript (9.4%): Handles client-side functionality such as password and phone number validation and interactive features like toggling password visibility.
- CSS (4.2%): Custom styles to enhance the website's visual appearance.
- HTML (3.0%): Structuring the website content.
-
Clone the Repository:
git clone https://github.com/M2hmoud2del/Courses-Site.git -
Database Setup:
- Import the provided database SQL file into your local database (e.g., MySQL).
-
Configure Database Connection:
- Edit the
DBConnection.phpfile to set up the correct database credentials for your environment.
- Edit the
-
Run the Project Locally:
- Use a local server (XAMPP, WAMP) to host the website.
- Access the website through
http://localhost/.
- Database: Stores user data, course information, and enrollment details.
- Login/Register: Secure user authentication system using PHP.
- Cards for Courses: Displays courses in a card layout for easy browsing.
- My Courses Page: Lists courses that the user has enrolled in.
- Profile Page: Displays and allows updates to personal data for each user.
- Footer and Navbar: Common UI components for navigation and site structure.
- Logout: Ends the user session securely.
- Validation: Password and phone number validation ensure user data integrity.
Feel free to fork the repository and submit pull requests. For major changes, please open an issue first to discuss what you'd like to change.
This project is open-source. Contributions are welcome from the community!