Task_manager.py allows users to manage tasks, including registering users, adding tasks, viewing tasks, generating reports, displaying statistics, and exiting the program. The script utilizes text files to store user information and task data.
Before running the script, ensure you have Docker and Docker Compose installed on your system.
-
Clone this repository to your local machine:
git clone https://github.com/your_username/task_manager.git cd task_manager
-
Build the Docker image:
docker build -t task_management .
-
Run the Docker container:
docker run -it task_management python task_manager.py
-
The script will present the main menu with the following options:
r
- Register a new user (Admin only).a
- Add a new task.va
- View all tasks.vm
- View tasks assigned to the current user.gr
- Generate reports (Admin only).ds
- Display statistics (Admin only).e
- Exit the program.
-
Choose an option from the menu by typing the corresponding letter.
-
Depending on the selected option, the script will prompt for additional information or display relevant information based on the user's input.
-
User data is stored in the
user.txt
file, with each line containing the username and password separated by a comma (,
). -
Task data is stored in the
tasks.txt
file, with each line representing a task and containing the username, task title, task description, task creation date, due date, and completion status separated by commas (,
).
- Only the
admin
user can register new users and generate reports. - For the due date of the task, use the format
DD-MM-YYYY
. - When marking a task as complete or editing a task, enter the corresponding task number as displayed in the task list.