A simple task manager application built with PHP to help you manage your tasks efficiently. This project includes features such as user authentication, adding, updating, deleting tasks, and categorizing tasks.
- User Authentication (Signup and Login)
- Add, Update, and Delete Tasks
- Categorize Tasks
- Set Task Deadlines
- Logout Functionality
- PHP
- MySQL
- HTML
- CSS
- JavaScript
- Clone the repository:
git clone https://github.com/chouaib-629/taskManager.git
- Navigate to the project directory:
cd taskManager
-
Run the application:
-
Start your local server (e.g., XAMPP, MAMP).
-
Set up the database:
- Open your database management tool (e.g., phpMyAdmin).
- Run the
db/schema.sql
script provided in the project directory to set up the database and tables.
-
Configure the database connection:
- Update the
dbHandler.inc.php
file with your MySQL database credentials.
<?php $host = 'your_host'; $db = 'taskManager'; $user = 'your_username'; $pass = 'your_password'; $dsn = "mysql:host=$host;dbname=$db"; $options = [ PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC, PDO::ATTR_EMULATE_PREPARES => false, ]; try { $pdo = new PDO($dsn, $user, $pass, $options); } catch (\PDOException $e) { throw new \PDOException($e->getMessage(), (int)$e->getCode()); }
- Update the
-
-
Navigate to the project directory:
- Open your web browser and go to
http://localhost/taskManager
(or the appropriate path for your setup).
- Open your web browser and go to
- Fill in the username, email, and password fields.
- Click the "Signup" button.
- Fill in the username and password fields.
- Click the "Login" button.
- Add new categories and tasks.
- Update or delete existing tasks.
- Logout when you're done.
Here are some screenshots of the application:
We welcome contributions! Please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Commit your changes (
git commit -m 'Add new feature'
). - Push to the branch (
git push origin feature-branch
). - Open a Pull Request.
For questions or support, please contact Me.