GithubHelp home page GithubHelp logo

alu-smile's Introduction

ALU Smile

Donate to the Amazon Labor Union when you shop on Amazon.com.

Developing

Developing requires a recent version of nodejs with npm.

First install dependencies:

npm install

To just produce a build of the app run:

npm run build

This will run linting, tests, and output bundles to the dist/ directory.

Live Testing Environment

To start the live testing environment run:

npm run dev

Go to the address printed out by the server in your browser. You should see a sanitized version of the Amazon checkout page (this lives in the test-page/ folder).

As you make changes to the source code, the bundler will automatically rebuild the code.

Next you need to load the extension into your browser in development mode:

Finally, go back to the checkout page running on localhost. Open up the browser's web console and reload the page. You should see a log line saying "alu-smile loaded"

The workflow for making changes is:

  • Edit code, save and it auto rebuilds
  • Reload the extension according to your browser's process (i.e. click the reload button)
  • Reload the checkout page

โš ๏ธ The "Place your order" button on the test page will not send any requests to amazon.com, however it will open the actblue donation page and make a donation if you are logged in. You can avoid this by editing the donation url in the extension preferences, e.g. by setting it to https://example.com?amount=.

Project Site

There is a jekyll site located in the docs/ folder. It follows the standard github pages conventions so you can follow those docs, but what follows are brief instructions for working on it locally.

First you need ruby and bundler installed as specified here. Then

cd docs/
bundle install
bundle exec jekyll serve

Any changes pushed to main will go live.

alu-smile's People

Contributors

dylanfprice avatar

Watchers

 avatar  avatar

alu-smile's Issues

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.