Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 1.64 KB

File metadata and controls

47 lines (31 loc) · 1.64 KB

Overview

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.

Snapshots

  1. UI User Interface

  2. Rule Creation

    Rule Creation

  3. Evaluate Rule

    Evaluate rule

  4. Combine rule

Combined rule

Features

  1. Create ,Evaluate and Combine eligibility rules.
  2. Use of Abstract Syntax Tree (AST) for rule representation.
  3. RESTful API for rule management.
  4. Simple UI for interacting with the rule engine.

Technologies Used

  1. Backend: Flask
  2. Database :SQLite
  3. Frontend : HTML/ CSS
  4. Libraries : Flask- SQLAlchemy, Werkzeug

Installation

Steps
  1. Clone the repository in Visual Studio code : https://github.com/sssonu/FastAPI-Rule-Engine.git
  2. Create virtual environment : python -m venv venv
  3. Activate Virtual environment:On Windows venv\Scripts\activate
  4. Install the dependencies : pip install -r requirements.txt
  5. Set up Database : pip install mysql-connector-python #No installation is needed as Python includes sqlite3 by default.
  6. Run the application : python main.py
  7. You will see a link something like this http://127.0.0.1:5000/ .