Leave Management UIET is a Django-based web application that simplifies leave management for the University Institute of Engineering & Technology (UIET). It provides a user-friendly interface for staff and students to request, approve, and manage leave applications.
Before using the Makefile, ensure you have the following prerequisites installed on your system:
- Python 3.9.13
- Virtual environment (optional but recommended)
- Git (for cloning the project repository)
To set up the project locally, you can use a single Makefile command:
-
Clone the project repository:
git clone https://github.com/yourusername/Leave_management_uiet.git cd Leave_management_uiet
-
Run the
local-setup
command to create a virtual environment, install project dependencies, configure environment variables, apply migrations, and create a superuser. This command combines all setup steps:make local-setup
-
After running
local-setup
, you can find a file named.env.template
in the project directory. This template contains variable names, but you need to provide values. -
To complete the setup, copy the variables from
.env.template
and paste them into a.env
file.For example, you might have variables like this in your
.env.template
:SECRET_KEY=your-secret-key-value EMAIL_HOST_USER=your-email-host-username EMAIL_HOST_PASSWORD=your-email-host-password
Create a new file named
.env
and copy these variables to it. Then, replaceyour-secret-key-value
,your-email-host-username
, andyour-email-host-password
with the actual values. -
Start the development server:
make run
Access the application in your web browser by visiting http://localhost:8000/.
You can use the following Makefile commands for common project tasks:
make create-venv
: Create a virtual environment.make activate-venv
: Activate the virtual environment.make install-dependencies
: Install project dependencies.make create-env-file
: Create the .env file.make apply-migrations
: Apply database migrations.make create-superuser
: Create a superuser for admin access.make run
: Start the development server.
- Fork the repository on GitHub.
- Clone your forked repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them.
- Push your changes to your GitHub repository.
- Submit a pull request to the original repository.
This project is open-source and available under the MIT License.