Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/debrajhyper/workflow-builder

Workflow building that performs dynamic operations on large amounts of data.
https://github.com/debrajhyper/workflow-builder

canvas drag-and-drop react-flow reactjs typescript

Last synced: 11 days ago
JSON representation

Workflow building that performs dynamic operations on large amounts of data.

Awesome Lists containing this project

README

        

# Drag & Drop workflow builder

🌐 Website : [wbuilder](https://wbuilder.vercel.app/)

## 📑Project Description

Create a Workflow Builder application where users can create, edit, and visualize different workflows. Each workflow consists of multiple steps (nodes) and the relationships (edges) between them. Users should be able to drag and drop different types of nodes (e.g., filter, find, reduce, map, array methods) onto a canvas, and then draw lines between them to represent the workflow.

Task is to create a workflow building that performs dynamic operations on large amounts of data. You will have multiple CSVs in your local project. User can perform various operations on data to see final result on the CSV user has selected. This CSV might contain million records too.

![screen1](./template/screen1.png)
![screen2](./template/screen2.png)
![screen3](./template/screen3.png)
![screen4](./template/screen4.png)


## 👨🏻‍💻 Developer's Talk
Developed by Debraj Karmakar







>Just wrapped up Workflow Builder, a React& Redux advance project. A compact journey with big learnings. From UI design to workflow canvas state management, faced challenges that shaped my skills as a front-end dev.


## 🚀 Tech Stack

- HTML5
- CSS3
- Vite
- React
- Typescript
- React Flow
- React Hooks
- React Redux
- React Router
- Tailwind CSS
- Redux Toolkit
- Tabler Icons
- React Resizable Panels


## 📁Folder Structure
```typescript
├───data
├───public
├───src
│ ├───app
│ ├───assets
│ ├───components
│ │ ├───BlockLibrary
│ │ ├───Canvas
│ │ │ └───customNodes
│ │ ├───Header
│ │ ├───Table
│ │ └───WorkflowCard
│ ├───constants
│ ├───hooks
│ ├───layout
│ ├───routes
│ ├───services
│ ├───utils
│ └───view
│ ├───Home
│ ├───NoMatchFound
│ └───WorkflowBuilder
└───template
```

## 🔐Key Features

- [✔] The dashboard will display all the workflows user has created. Users can either create a new workflow or edit the existing one.
- [✔] The user will be represented with a blank canvas.
- [✔] In the left panel,
- there will be options to choose CSV data to perform operations on. (These CSVs will reside in the local project folder).
- These CSV data will be input of the next node.
- there will be nodes which represents Array methods such as filter, map, find etc.
- [✔] User will select any node and will drop in canvas and will take few required inputs such as,
- in sort method, column name & order
- in filter method,
- column name,
- condition (is equal, is not equal to, includes, does not include)
- value (this will be dynamically shown based on condition type selection)
- [✔] All these blocks connected via each other and output of this block passed to the next connected block and perform operation only on the previous node’s output data.
- [✔] There is a ``Run`` button inside every block and upon clicking it, final output will be shown in table format in bottom panel (which is collapsible)
- [✔] These data has option to “Export data” in json or in CSV format again.
- [✔] There is a ``Save workflow`` button on header. By clicking it that workflow along with its unique name should be stored in web storage (localStorage)
- [✔] The application should handle large data efficiently and demonstrate good performance.


## ✅Development Technology

1. [✅] The application is built using React and related technology stack (Redux, React-Router, etc).
2. [✅] The workflow builder uses [React Flow](https://reactflow.dev/) and provides a seamless user experience.
3. [✅] Components are well-structured and properly organized.
4. [✅] State management is handled efficiently using Redux and context API.
5. [✅] Use of Redux-toolkit for state management.
6. [✅] React hooks are used where necessary.
7. [✅] React best practices are followed.
8. [✅] Proper error handling is implemented.
9. [✅] Proper use of async operations and Promises.
10. [✅] The code is clean, well-structured, and follows a recognized style guide ``(Airbnb's style guide)``.
11. [✅] Code runs with eslint enabled.
12. [✅] Error messages is proper along with fallback UI where there are no data.
13. [✅] Runtime UI crashes are not allowed, even if it happens anyhow, It should have a fallback UI with a gradient background and error message texts upon it which should be clearly readable.


## 🏃🏻‍♂️ Run Locally

Clone the project
```
$git clone https://github.com/debrajhyper/workflow-builder.git
```

Go to the project directory
```
cd workflow-builder
```

Install dependencies
```
$npm install
```

Start the dev server
```
$npm run dev
```