GithubHelp home page GithubHelp logo

jtarre / btm Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 2.86 MB

A nonpartisan tool for the well-rounded news reader.

Home Page: https://www.bridgethemedia.com/

JavaScript 59.30% CSS 38.62% HTML 2.07%

btm's Introduction

Bridge The Media

A nonpartisan tool for the well-rounded news reader.

Our Google Chrome Extension encourages citizens to be more informed participants in American democracy through balanced media. Let us recommend articles to complete your political perspective.

Current production version: v.2.0.7

Dev version: 2.0.9

  • BTM popover redesign
    • Headers standardized
  • Expansion to more news publications
    • /us/ and /world/ added

Important files in production

  • btm.js - Responsible for placing BTM icons and Show Alternatives Button
  • popup.js - Google Analytics logic lives here
  • manifest.json - Entry point for Chrome; list of content scripts and css injections

Development

  1. npm install to install new dependencies
  2. npm run build-watch to automatically regenerate a bundle.js with code changes

Deployment

  1. npm run build to generate a bundle.js
  2. Make sure the manifest.json points to the bundle.js
  3. Upload the /src subdirectory as the extension's package

Testing

  • Currently using Mocha + Chai - see recommendation-fetcher-spec.js for an example
  • To run all tests: npm test
  • To run a specific suite: mocha <example.spec.js>

Linting

  • BTM uses ESlint with a modified Airbnb style guide
  • To lint against a file: ./node_modules/.bin/eslint <yourfile.js>
  • To lint against whole project: npm run linter

Contributing Guidelines

  1. There are two main branches: btm-stable (production) and master (dev)
  2. For a bug fix, branch off of btm-stable, merge into btm-stable, then merge btm-stable into master
  3. For new features, branch off of master and merge into master
  4. New code on master will be merged into btm-stable, and btm-stable will be deployed.

btm's People

Contributors

anishpdalal avatar emtseng avatar jtarre avatar

Watchers

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