https://geom-hacks.devpost.com/ https://devpost.com/software/covid-aid-acp850
every project needs at least one
Compacctly pacc your donations using Paccurate
With the recent surge in donations related to COVID, there is a stronger case to make sure our donations are delivered as effectively as possible. Even in the industry, packaging products have inefficiencies. With these inefficiencies come environmental concerns regarding the excessive use of packing material in today’s modern and globalized world.
Compacctly provides users with efficient methods for packing their donations. When the user first logs into the website, they are greeted with a recommended package for donation. One the left, the user is provided with options to modify the quantity of commonly donated items such as masks, canned food, and hand sanitizer. Below the options, we display the total cost of donation items, shipping and boxes, and overall cost. On the right, the Paccurate API provides an image showing the user how to most efficiently pack their donations. By using Compacctly, we allow donators to use their funds on actual donations rather than packaging and shipping.
We designed the frontend using ReactJS, a JavaScript framework, while our backend was handled by the Paccurate API.
We used ReactJS since our team wanted to become familiar with the framework and React had states. We built our landing page using Bootstrap. Using Axios, we were able to make POST requests to the Paccurate API and store the SVGs, box names, and total cost variables it returned.
The Paccurate API calculates the best method for packing a box. In our case, we used dimensions from USPS flat rate boxes and imported their rate table to find the exact cost of the boxes and shipping.
- Bootstrap
- Different units inside Paccurate API (rateTable and price)
- None of us knew any (pretty) CSS so it was a real pain to get our GUI not ugly
- Updating the image whenever data is changed
- Display cost of all items
- How to use an API, specifically making POST requests
- Learned to use ReactJS
- Material design and Bootstrap in React
<<<<<<< HEAD This project was bootstrapped with Create React App.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
Note: this is a one-way operation. Once you eject
, you can’t go back!
If you aren’t satisfied with the build tool and configuration choices, you can eject
at any time. This command will remove the single build dependency from your project.
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject
will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
You don’t have to ever use eject
. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify
6899c31ebf7308a1a6fa2d2826c87b9e027c05cd