Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.
/ packer-app Public archive

Demo Reactjs web app for finding packing solutions with a LAFF bin packer.

License

Notifications You must be signed in to change notification settings

obstrom/packer-app

Repository files navigation

packer-app (Compacked)

About

Webapp for calculating and finding the optimal packing solution from a range of packages/boxes and products and presenting that in a visually clear way. This is the client-side repo of the project. Relies on a private API, that project can be found here.

Note: This is a demo project and part of my thesis project at Stockholms Tekniska Insitut. Feel free to use this source code however you'd like, but no updates or support may be given!

Built using React.js, Typescript, React-Bootstrap, Three.js and React-three-fiber. Using a LAFF (Largest Area Fit First) bin packing algorithm implementation from 3d-bin-container-packing.

Instructions

If you wish to clone or fork and run this project yourself, this is what you need to know.

This project needs access to this private API. I recommend hosting your own copy, or building your own custom API solution.

Running local install

Recommended running with atleast npm v.8.6.0 and node v18.0.0

  1. Git clone or download repo
  2. At the root of the project create an env.local-file and add the env variables:
REACT_APP_API_AUTH_KEY=<[private-api-key]>
REACT_APP_API_BASE_URL=<[url-to-api]/api/v1/packer>

Example:

REACT_APP_API_AUTH_KEY=somekey123
REACT_APP_API_BASE_URL=https://compacked-app-api.herokuapp.com/api/v1/packer
  1. Run npm ci to install dependencies
  2. Run npm start to start app, runs on http://localhost:3000 as default

Note: If you target the official API then it expects your local React version to be running on "localhost:3000" specifically for CORS rules

About

Demo Reactjs web app for finding packing solutions with a LAFF bin packer.

Topics

Resources

License

Stars

Watchers

Forks

Languages