-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from jvc-byte/WorkDir
refactored the project
- Loading branch information
Showing
317 changed files
with
226 additions
and
373 deletions.
There are no files selected for viewing
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,94 @@ | ||
# Coaching site | ||
# Coaching Site | ||
|
||
## Description | ||
A comprehensive coaching platform offering a unified login for both admins and users, peer-to-peer (P2P) interactions, virtual sessions, and classic (in-person) sessions to cater to various coaching needs. | ||
|
||
## Table of Contents | ||
- [Description](#description) | ||
- [Features](#features) | ||
- [Installation](#installation) | ||
- [Usage](#usage) | ||
- [Contributing](#contributing) | ||
- [License](#license) | ||
- [Contact Information](#contact-information) | ||
|
||
## Features | ||
- **Unified Login:** Secure login form for both admins and regular users. | ||
- **Peer-to-Peer (P2P) Interactions:** Facilitate direct interactions between coaches and students. | ||
- **Virtual Sessions:** Conduct coaching sessions online. | ||
- **Classic Sessions:** Arrange traditional in-person coaching sessions. | ||
- **Free Password Hashing and Password Hash Verifier:** Added at the left side of the footer. | ||
|
||
## Installation | ||
1. **Download and Install XAMPP:** | ||
- Download XAMPP from [Apache Friends](https://www.apachefriends.org/index.html) and install it. | ||
|
||
2. **Clone the Repository:** | ||
```bash | ||
git clone https://github.com/jvc-byte/coaching-site.git | ||
``` | ||
|
||
3. **Move the Project to XAMPP's `htdocs` Directory:** | ||
- Move the cloned repository to the `htdocs` directory inside your XAMPP installation folder (e.g., `C:\xampp\htdocs\`). | ||
4. **Set Up the Database:** | ||
- Start XAMPP and ensure Apache and MySQL services are running. | ||
- Open [phpMyAdmin](http://localhost/phpmyadmin) and create a new database with the name `coaching_site`. | ||
- Import the SQL file provided in the project `coaching-site.sql` to set up the database schema and initial data. | ||
5. **Configure Environment Variables:** | ||
- Make sure the `database_connection.php` file inside the `include` directory matches the below configuration settings: | ||
```php | ||
<?php | ||
$hostName = "localhost"; | ||
$dbUser = "root"; | ||
$dbPassword = ""; | ||
$dbName = "coaching_site"; | ||
$conn = mysqli_connect($hostName, $dbUser, $dbPassword, $dbName); | ||
if (!$conn) { | ||
error_log("Failed to connect to MySQL: " . mysqli_connect_error()); | ||
die("Sorry, there was a problem connecting to the database."); | ||
} | ||
?> | ||
``` | ||
6. **Start the Application:** | ||
- Open your browser and navigate to [http://localhost/coaching-site/index.php](http://localhost/coaching-site/index.php). | ||
## Usage | ||
1. **Signup:** | ||
- Fill the form with your credientials to create your account. | ||
- you either signup as `p2p`, `virtual` or `classic` to access either of the features. | ||
2. **Login:** | ||
- Enter your credentials to log in. Admins and users use the same login form. | ||
- Use `[email protected]` and `password` to login as admin. | ||
- Navigate to the `p2p` section to find and connect with other users. | ||
- Schedule and join `virtual` coaching sessions through the platform. | ||
- Arrange `classic` (in-person) coaching sessions via the platform. | ||
## Contributing | ||
We welcome contributions to improve the platform. To contribute: | ||
1. Fork the repository. | ||
2. Create a new branch: | ||
```bash | ||
git checkout -b feature-name | ||
``` | ||
3. Make your changes and commit them: | ||
```bash | ||
git commit -m 'Add some feature' | ||
``` | ||
4. Push to the branch: | ||
```bash | ||
git push origin feature-name | ||
``` | ||
5. Open a pull request. | ||
## Contact Information | ||
For any inquiries or support, please contact: | ||
- **Email:** [[email protected]](mailto:[email protected]) | ||
- **LinkedIn:** [jvc-byte](https://www.linkedin.com/in/jvc-byte) | ||
- **GitHub:** [jvc-byte](https://github.com/jvc-byte) |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file added
BIN
+32.3 KB
USER_DASHBOARD/profile_images/66a900637e458_Screenshot 2024-07-01 014306.png
Oops, something went wrong.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
-- phpMyAdmin SQL Dump | ||
-- version 5.2.1 | ||
-- https://www.phpmyadmin.net/ | ||
-- | ||
-- Host: 127.0.0.1 | ||
-- Generation Time: Jul 30, 2024 at 07:59 PM | ||
-- Server version: 10.4.32-MariaDB | ||
-- PHP Version: 8.2.12 | ||
|
||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; | ||
START TRANSACTION; | ||
SET time_zone = "+00:00"; | ||
|
||
|
||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | ||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | ||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | ||
/*!40101 SET NAMES utf8mb4 */; | ||
|
||
-- | ||
-- Database: `coaching_site` | ||
-- | ||
|
||
-- -------------------------------------------------------- | ||
|
||
-- | ||
-- Table structure for table `user` | ||
-- | ||
|
||
CREATE TABLE `user` ( | ||
`id` int(20) NOT NULL, | ||
`first_name` varchar(150) NOT NULL, | ||
`last_name` varchar(150) NOT NULL, | ||
`email` varchar(150) NOT NULL, | ||
`password` longtext NOT NULL, | ||
`phone_number` varchar(30) NOT NULL, | ||
`industry` varchar(255) NOT NULL, | ||
`program` varchar(255) NOT NULL DEFAULT 'user', | ||
`about` varchar(500) NOT NULL, | ||
`business_stage` varchar(1000) NOT NULL, | ||
`address` varchar(500) NOT NULL, | ||
`registration_date` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), | ||
`user_type` varchar(255) NOT NULL DEFAULT 'user', | ||
`status` int(2) NOT NULL DEFAULT 1, | ||
`profile_picture` blob NOT NULL | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; | ||
|
||
-- | ||
-- Dumping data for table `user` | ||
-- | ||
|
||
INSERT INTO `user` (`id`, `first_name`, `last_name`, `email`, `password`, `phone_number`, `industry`, `program`, `about`, `business_stage`, `address`, `registration_date`, `user_type`, `status`, `profile_picture`) VALUES | ||
(1, 'Dirk', 'Vernon', '[email protected]', '$2y$10$JSJFRoLKCObaxHVN9UgknuMWu/WhZiBBDvbxLEx8w5P7ZcYmVXbhe', '+2348164906365', 'healthcare', 'classic', 'I am known for my [Positive Attribute, e.g., \\\'strong work ethic\\\' or \\\'creativity\\\'] and my ability to [Another Positive Attribute, e.g., \\\'work well in teams\\\' or \\\'adapt to new situations\\\']. I thrive in environments that encourage innovation and collaboration and am always eager to contribute my best to any project or initiative.', 'growth', 'Opposite School Junction Tunga Maje, Abuja Nigeria', '2023-10-05 14:48:45', '', 1, 0x2e2e2f70726f66696c655f696d616765732f363531656265626431636666375f696d6167652839292e77656270), | ||
(2, 'valor', 'valentine', '[email protected]', '$2y$10$YKCykVNZ6T9WKmo4roMP6.c0YCJp8hQrQ4IOV/.CD7r/Rrz4m28MO', '+2348164906365', 'healthcare', 'classic', 'i don\'t give a fuck about what people say about me cuz imma live my life to the fullest', 'growth', 'Opposite School Junction Tunga Maje, Abuja Nigeria', '2023-10-05 14:16:46', '', 1, ''), | ||
(3, 'Shino', 'Peter', '[email protected]', '$2y$10$biAi6AblzWYnDUqap25mvOV29hjdtDH.CY4zLyBp4R/WaOi333h4G', '08164908475', 'tech', 'p2p', 'If you\\\\\\\'re still encountering the \\\\\\\"Undefined variable $row\\\\\\\" warning, it suggests that the $row variable is not being defined within the if statement due to the SQL query not returning any results. To handle this situation, you can initialize the $row variable before the if statement as follows:', 'startup', 'Opposite deeper life church Madalla Niger State', '2023-10-05 14:57:32', '', 1, 0x2e2e2f70726f66696c655f696d616765732f363531656330636364663832375f696d616765283130292e77656270), | ||
(4, 'Maxwell', 'Onah', '[email protected]', '$2y$10$pTwuHnJxzcC/8oWIv3sgGeJYlMCM7Sdl7papdhqTRWC0VYU.0GaD6', '08163876453', 'Agriculture', 'virtual', 'variable is not being defined within the if statement due to the SQL query not returning any results. ', 'startup', 'veritas university abuja niger state', '2023-10-05 14:58:42', '', 1, 0x2e2e2f70726f66696c655f696d616765732f363531656331313239643538635f696d6167652833292e77656270), | ||
(5, 'John', 'Kendrick ', '[email protected]', '$2y$10$EOCmimoJbwAeQybzjfD3hOciPQdKa7Kxe6TmnO.j8SLgJV9XQgRpK', '081649756965', 'admin', 'admin', 'I\'m one of the admins of this honourable coaching platform', 'startup', 'val is everywhere', '2023-10-08 16:16:20', 'admin', 1, 0x70726f66696c655f696d616765732f363531653939666430613835635f696d616765283131292e77656270), | ||
(6, 'van', 'vicker', '[email protected]', '$2y$10$hfgyZ7iF5cq.v9Tfy/vn0.nCzJTDUeSVCxTmnHJyNev8VAo8R6r1q', '+2348166406365', 'Technology', 'virtual', 'i go soon mad', 'growth', 'Opposite School Junction Tunga Maje, Abuja Nigeria', '2023-10-05 10:25:00', 'user', 1, 0x2e2e2f70726f66696c655f696d6167652f363531653764623334323961345f696d616765283130292e77656270), | ||
(7, 'sam', 'larry', '[email protected]', '$2y$10$/sUqzPcUlIPHO.bLIzv6FuN3uAhvEdzq3hbkMCKS0Cvr50knugl5K', '+2348164906365', 'Technology', 'classic', 'still testing', 'growth', 'Opposite School Junction Tunga Maje, Abuja Nigeria', '2023-10-04 17:39:39', 'user', 1, ''), | ||
(9, 'Admin', 'admin', '[email protected]', '$2y$10$ifnA4hIvJhAddPAfMswhCuj8E6I3h0uCCINHta6bDkvOzyyhUlULa', '1234567890', 'Technology', 'admin', 'I am the admin', 'growth', 'i work remotely', '2024-07-30 18:59:05', 'admin', 1, ''); | ||
|
||
-- | ||
-- Indexes for dumped tables | ||
-- | ||
|
||
-- | ||
-- Indexes for table `user` | ||
-- | ||
ALTER TABLE `user` | ||
ADD PRIMARY KEY (`id`); | ||
|
||
-- | ||
-- AUTO_INCREMENT for dumped tables | ||
-- | ||
|
||
-- | ||
-- AUTO_INCREMENT for table `user` | ||
-- | ||
ALTER TABLE `user` | ||
MODIFY `id` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; | ||
COMMIT; | ||
|
||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | ||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; | ||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
$hostName = "localhost"; | ||
$dbUser = "root"; | ||
$dbPassword = ""; | ||
$dbName = "coaching_site"; | ||
|
||
$conn = mysqli_connect($hostName, $dbUser, $dbPassword, $dbName); | ||
|
||
if (!$conn) { | ||
error_log("Failed to connect to MySQL: " . mysqli_connect_error()); | ||
die("Sorry, there was a problem connecting to the database."); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.