The Rule Engine is a web-based application designed to facilitate the definition, evaluation, and visualization of logical rules. This application empowers users to create complex rules and understand their structure through visual representation, making it a valuable tool for both developers and non-technical users.
This project utilizes Next for the front end and integrates the react-d3-tree library for visualizing the rules in a tree-like format. Users can input rules based on specific criteria, and the application will convert these rules into an Abstract Syntax Tree (AST) for visualization.
Live Demo: click me
- Define Rules: Create rules based on logical conditions using a simple input format.
- Combine Rules: Combine multiple rules using logical operators (AND, OR) to form complex conditions.
- Evaluate Rules: Evaluate defined rules against specified data to check their validity.
- Visualize Rules: Dynamic visualization of rules in an Abstract Syntax Tree (AST) format for easier comprehension and navigation.
- Interactive Tree Navigation: Users can navigate, zoom in, and out of the tree representation of rules.
Make sure you have the following installed on your machine:
Follow these steps to clone the project and run it on your local machine:
-
Clone the Repository
Open your terminal and run the following command to clone the repository:
git clone https://github.com/Jashank2003/rule_engine_ast.git
-
Navigate to the Project Directory
cd rule_engine_ast -
Install Dependencies
npm install
-
Run the Development Server
npm run dev
5 Open your web browser and navigate to http://localhost:3000 to view the application.