Mirath is a web application designed to help users calculate and distribute inheritance according to Islamic (Sharia) laws. The app allows users to input their inherited assets (money, property, etc.) and calculate the rightful share for each heir. This tool aims to make the process of inheritance distribution clear, transparent, and in full compliance with Islamic principles.
- Inheritance Calculation: Automatically calculates the inheritance distribution based on Islamic inheritance laws.
- Asset Input: Users can input money, properties (houses, cars, etc.), and other assets to be included in the calculation.
- Heir Management: Users can add heirs (sons, daughters, spouses) and their respective shares based on their Islamic rights.
- User Authentication: Secure user login and registration for a personalized experience.
- Results Display: Provides a breakdown of inheritance distribution and shares for each heir in a simple, understandable format.
- Backend: Python, Flask
- Frontend: HTML, CSS, JavaScript
- Database: MySQL
- Authentication: Flask-Login (or Flask-JWT)
- Hosting: Heroku (for deployment)
Make sure you have the following installed:
- Python (3.7+)
- MySQL or any database of your choice
- Node.js (if you plan to modify the frontend assets)
-
Clone the repository:
git clone https://github.com/isahabdulsalam/mirath.git cd mirath
-
Create a virtual environment (optional but recommended):
python -m venv venv source venv/bin/activate # For Windows use: venv\Scripts�ctivate
-
Install the backend dependencies:
pip install -r backend/requirements.txt
-
Set up the database:
- Ensure that MySQL is running on your local machine.
- Update the
SQLALCHEMY_DATABASE_URI
inbackend/config.py
with your database credentials.
-
Run the application:
python backend/app.py
-
Access the app: Open your browser and go to
http://127.0.0.1:5000
.
-
Navigate to the
frontend/
directory:cd frontend
-
Open
index.html
in any web browser to start testing the frontend or deploy it to your server.
- Register and log in: Users must register an account to access the inheritance calculator.
- Input Assets and Heirs: Enter the total inherited money and properties. Specify the heirs (sons, daughters, etc.), and the app will calculate the shares.
- View Results: The app displays the inheritance shares for each heir based on Islamic law.
Contributions are welcome! If you'd like to improve the project or add new features, follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature-name
). - Commit your changes (
git commit -am 'Add new feature'
). - Push to your branch (
git push origin feature/your-feature-name
). - Submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
- Isah Abdulsalam - Initial work - Your GitHub
- Inspired by the need for a transparent and automated inheritance distribution tool in compliance with Islamic laws.
- Special thanks to the open-source community for providing tools like Flask and MySQL that made this project possible.