Politicry is a browser extension to filter political posts from your feed on popular social media sites such as Reddit. Currently, we only support the Chrome browser, but in the future hope to expand support to include other browsers, such as Firefox.
- Download and unzip the latest release.
- Visit
chrome://extensions/
in your Chrome browser. - Toggle Developer mode.
- Click on the "Load unpacked" button.
- Select the unzipped folder.
- The Politicry extension card should show in your list of extensions.
If you would like to download the current, unreleased version of the extension in this repository:
- Build the extension as per the instructions below.
- Follow the instructions above, using the
politicy/extension/dist
folder instead.
- Install yarn:
npm install --global yarn
- Install Docker. You may also need to install the WSL 2 Linux kernel if Docker Desktop prompts you to.
- Open Docker Desktop
- Clone this repository and open it in the terminal.
Run Backend:
docker-compose -f docker-compose.dev.yml up -d # start the backend
## other useful commands ##
docker-compose -f docker-compose.dev.yml logs -f # view logs of backend
docker-compose -f docker-compose.dev.yml down # stop the backend
If this does not work, please try the top solution here
Build Extension:
cd extension
yarn # install modules
# build the extension, this will export to extension/dist
yarn build
ENVIRONMENT=dev yarn build # for Linux
Run Tests for Extension
cd extension
yarn test # (or "npm test")
# to collect code coverage, and run all tests immediately, use this command instead:
yarn test:ci
Run Tests for Website
cd website
yarn test # (or "npm test")
Run Code formatter and lint tool
# cd into the root directory of this repository
yarn # first time only
yarn lint
Running this script will fix any formatting issues and report issues that could not be fixed.
cp .example.env .env
docker-compose -f docker-compose.yml --env-file .env up -d
Unless otherwise specified, all contributions will be licensed under MIT. For further details see the contributing guidelines.