Giter VIP home page Giter VIP logo

greengarments's Introduction

GreenGarments

Inspiration

The fashion industry is the second largest polluter in the world, only superseded by oil. I didn't know anything about the sustainability of the clothes I bought, and I realized there's a vacancy when it comes to services that mitigate ignorance about one's shopping. The best way to combat this is raising awareness and accessibility to healthier alternatives to fast fashion, and Green Garments does just that: influence small-scale decision making that triggers large-scale change.

What it does

Green Garments is a Chrome extension that gives users easy access to sustainability information on fashion websites. It provides overall site rating as well as information about the ecological impact of each material in a given item of clothing.

How I built it

The chrome extension itself was built on Javascript and HTML. It uses Regular Expressions to scan webpages and their URLs to gather information on a particular garment's build or a certain brand's reputation.

Challenges I ran into

Chrome makes it difficult to know exactly what bug your extension ran into, since it runs in a separate HTML window and thus you can't 'inspect element' it. Also, this being my first asynchronous app created with Javascript, I had to learn the quirks of request sending/receiving and how to encapsulate different aspects of the code, including the difference between content, background, and popup scripts.

Accomplishments that I'm proud of

I am very proud that my first chrome extension met the need that I set out to fulfill. On any page containing a garment and the material it is made of, my extension can tell you how sustainable the fabrics used are, and hopefully this can pave the way for more people becoming aware of what they buy and wear.

What I learned

I learned a project is best completed when there's a clear objective and limited scope. This is the first time I have finished a working product exactly how I wanted to, and this is because I clearly mapped out what I wanted: brand sustainability rating and garment-fabric sustainability rating. I didn't try to go out and make the next "Honey", and I think limiting my scope in this way helped me stay focused and incrementally work on the next task towards completion.

What's next for Green Garments

There's a huge potential for Green Garments because of increasing environmental consciousness and a global need to switch to sustainable lifestyle. For starters, I intend to use the Eupedia Brand Ratings to expand the site review portion of the extension, and perhaps even automate the ratings. I also plan to to set up authentication with a database so users can submit their own ratings/reviews and these can be easily compiled in the extension. And, of course, I want to eventually publish the working product to the Chrome Web Store so that people (and the planet) can actually benefit from my work.

Setup

Download the code to your computer from GitHub. Open Google Chrome and by clicking the โ‰ก in the top right, navigate to More Tools -> Extensions. Make sure Developer mode (switch on top right) is turned on, click Load unpacked, and select the green folder. The extension should now load and you can view sustainability reports on major fashion websites.

Green Garments Logo

greengarments's People

Contributors

paramsdamle avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.