Giter Club home page Giter Club logo

newstab's Introduction

News Tab

A Chrome extension that displays the latest headlines on your New Tab page.

Screenshot of NewsTab in action

Development

Clone this repository, cd into it, and run yarn install to install the dependencies.

To see the Chrome extension in action on your local browser, follow these steps:

  1. Make sure you have set up the required environment variables (see below).
  2. Run the command yarn build to create a production build.
  3. Go to chrome://extensions and enable Developer Mode. Click on Load Unpacked. This will bring up the file browser.
  4. Find the build/ directory of this app and select it.
  5. Now, whenever you open a new tab, you should be able to see the latest headlines!

Environment Variables

Grab your free API key from News API. Add the following line to your .env file:

API_KEY=<YOUR API KEY HERE>

Additionally, create a .env.production file for the production environment and add the following line:

INLINE_RUNTIME_CHUNK=false

Inline scripts are blocked by most browsers (see Content Security Policy), so this variable will help bypass this restriction by disabling scripts being added inline by react-scripts.

Credits

This project:

  1. Uses News API.
  2. Looks great because of Grommet.
  3. Was bootstrapped with Create React App.

newstab's People

Contributors

amad-person avatar

Stargazers

 avatar

Watchers

 avatar

newstab'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.