8000 GitHub - jmgloria07/the-hacksaw
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

jmgloria07/the-hacksaw

Repository files navigation

THE-HACKSAW

Written with vanilla Bootstrap 5.3 and React, bundled with Vitejs, hosted on Firebase.

Motivation

THE-HACKSAW came to fruition because of the difficulty of a good friend of mine, a civil engineer.

The problem was, that they needed different lengths of, for example, steel bars for a construction project. However, suppliers can only supply specific lengths. So, they will need to cut the supplied materials to their lengths. Same thing for other materials.

They were utilizing Excel to compute, which made them consume unnecessary time, produce errors, as well as purchase more than what they needed. All of these cost resources (money).

This is a variation of the Bin-Packing Problem, and is classified as NP-hard. Fortunately, we are not dealing with very large number of inputs and edge cases, so utilizing the three basic algorithms to solve the problem will suffice (First Fit, Best Fit, Worst Fit).

I also had some time and have been learning full-stack with React, so this was a perfect opportunity for me to both help and study. Two birds in one stone!

I first whipped up a Proof of Concept (PoC) for them to use and check what could be done. Then, improve based on the feedback. The PoC can be found here.

Setup

Ensure you have node.js and npm installed, then run:

npm install

To start the development server, run:

npm run dev

To build:

npm run build

Built files are in dist/ folder.

To-Do

Future Plans

  • Implement Past Computes
  • Define a custom fit

Known Bugs

  • Copied tooltip doesn't disappear right away
  • Accordion isn't the way I want it to be

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0