# DINT **Repository Path**: mirrors_microsoft/DINT ## Basic Information - **Project Name**: DINT - **Description**: DINT: Do I Need This, is a web browser extension aimed to help online shoppers make better purchasing decisions. Whenever a user tries to purchase an item similar to what they purchased earlier, DINT notifies them about the repeat purchase and gives them an opportunity to reflect on whether they really need it. We also allow users to set a saving - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-19 - **Last Updated**: 2025-09-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README --- page_type: sample languages: - typescript - css - html products: - react - redux description: Browser extension for tracking shopping history and goal setting urlFragment: https://github.com/microsoft/DINT --- # DINT (Official Microsoft Sample) DINT: Do I Need This, is a web browser extension aimed to help online shoppers make better purchasing decisions. Whenever a user tries to purchase an item similar to what they purchased earlier, DINT notifies them about the repeat purchase and gives them an opportunity to reflect on whether they really need it. We also allow users to set a saving goal, monitor their progress towards that goal, view their purchase history, and filter notifications for certain products such as necessities. This is a community project that was started during the 2019 OneWeek Hackathon for the Hack for Sustainability challenge. ## Contents Outline the file contents of the repository. It helps users navigate the codebase, build configuration and any related assets. | File/folder | Description | |-------------------|--------------------------------------------| | `src` | Sample source code. | | `.gitignore` | Define what to ignore at commit time. | | `CHANGELOG.md` | List of changes to the sample. | | `CONTRIBUTING.md` | Guidelines for contributing to the sample. | | `README.md` | This README file. | | `LICENSE` | The license for the sample. | ## Prerequisites NodeJS - Javascript runtime -- Use version 10 ## Setup This codebase uses the Web Extension starter: https://github.com/ymdevs/Web-Extension-Starter. Please see its README for more set up info. ## Runnning the sample #### In terminal or command prompt ``` install dependencies - npm install Transpile the code - npm run dev (only transpiles the code) - npm run watch (transpiles and watches for code changes) yarn commands will work too if yarn is installed. ``` #### In Chrome web browser 1. Go to: [**chrome://extensions**](chrome://extensions) 2. Toggle: "**developer mode**" on. 3. Click on: "**Load unpacked**" 4. Select the newly created folder "**dist**" from the project folder. 5. Thats it. #### In Firefox web browser 1. Go to: [**about:debugging**](about:debugging) 2. Select: "**Enable add-on debugging**" 3. Click on: "**Load Temporary Add-on…**" 4. Open the newly created folder "**dist**" from the project folder, and choose the "**manifest.json**" file. 5. Thats it. ## Key concepts React and redux ## Contributing This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com. When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA. This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.