A simple 3-tier rule engine application built with Flask that determines user eligibility based on attributes using an Abstract Syntax Tree (AST) to represent conditional rules.
- Create ,Evaluate and Combine eligibility rules.
- Use of Abstract Syntax Tree (AST) for rule representation.
- RESTful API for rule management.
- Simple UI for interacting with the rule engine.
- Backend: Flask
- Database :SQLite
- Frontend : HTML/ CSS
- Libraries : Flask- SQLAlchemy, Werkzeug
- Clone the repository in Visual Studio code :
https://github.com/sssonu/FastAPI-Rule-Engine.git - Create virtual environment :
python -m venv venv - Activate Virtual environment:
On Windowsvenv\Scripts\activate - Install the dependencies :
pip install -r requirements.txt - Set up Database :
pip install mysql-connector-python #No installation is needed as Python includes sqlite3 by default. - Run the application :
python main.py - You will see a link something like this
http://127.0.0.1:5000/.



