danielzting / geom-hacks

NOTE: The website is best viewed in 1920x1080

Home Page:https://danielzting.github.io/geom-hacks/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Made for Geom Hacks

https://geom-hacks.devpost.com/ https://devpost.com/software/covid-aid-acp850

Pun

every project needs at least one

Compacctly pacc your donations using Paccurate

Inspiration

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.

What it does

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.

How we built it

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.

Challenges we ran into

  • 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

Accomplishments that we're proud of

  • Updating the image whenever data is changed
  • Display cost of all items

What we learned

  • 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.

Available Scripts

In the project directory, you can run:

yarn start

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.

yarn test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

yarn build

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.

yarn eject

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.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration

Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

yarn build fails to minify

geom-hacks

6899c31ebf7308a1a6fa2d2826c87b9e027c05cd

About

NOTE: The website is best viewed in 1920x1080

https://danielzting.github.io/geom-hacks/


Languages

Language:JavaScript 83.4%Language:HTML 9.8%Language:CSS 6.8%