Code Monkey home page Code Monkey logo

newsdash's Introduction

newsdash

A news dashboard inspired by iGoogle and Netvibes

FeaturesMotivationInstallationDevelopmentCreditsLicense

Screenshot

⭐ Features

  • Customizable grid-based dashboard
  • Support for Atom and RSS feeds
  • 4 different feed layouts: condensed, list, detailed, tiles
  • Tabbed multi-feeds
  • Import/Export of settings and feeds
  • Filter feed items
  • Clean and simple design
  • Carefully handcrafted

🤔 Motivation

I couldn't find a modern and simple web-based feed reader that meets my requirements. So I wrote my own.

💻 Installation

Docker

To get you up and running start the Docker image. You can then access the web app at http://localhost:3001/.

$ docker run \
    -e REDIS_URL=redis://redis:6380 \
    -p 127.0.0.1:3001:3001 \
    newsdash/newsdash

Redis

To persist your settings and feeds you need to provide a Redis instance. You can start a Redis container and link it to newsdash. Docker Compose works great for small setups. Use the environment variable REDIS_URL to customize the connection URL. It's possible to run without Redis in API-less mode.

nginx

For a production deployment you should use some sort of reverse proxy like nginx. This way you can add things like basic authentication, gzip compression and TLS termination. nginx is also much better at serving the static files. The container exports the minified production build in the volume /newsdash/client.

A sample nginx configuration snippet you can start from.

server {
  listen 443 ssl http2;
  server_name newsdash.example.com;
  root /path/to/newsdash-client;

  ssl on;
  ssl_certificate [...];

  auth_basic "Restricted";
  auth_basic_user_file htpasswd_file;

  gzip on;
  gzip_min_length 500;
  gzip_proxied any;
  gzip_types
    text/css
    text/xml
    application/atom+xml
    application/javascript
    application/manifest+json
    application/rdf+xml
    application/rss+xml
    application/xml;

  location /api/ {
    proxy_set_header X-Forwarded-For $remote_addr;
    proxy_set_header Host $http_host;
    proxy_pass http://localhost:3001;
  }

  location / {
    try_files $uri $uri/index.html =404;
  }
}

API-less

It's possible to run newsdash without the API part.

The upside is, it's easy to deploy. You just have to upload a bunch of static files. Grab the dist package and unzip it to a folder on your webserver.

The web app will detect that it doesn't have access to the API and runs in fallback mode. It will be fully functional although some limitations apply.

  • Feeds are fetched using a public CORS proxy.
  • Images are only present if the feed has image URLs included. Usually they come in low resolution.
  • All settings and feeds are stored locally in your browser. You need to transfer them manually to another computer using the import/export function.

🛠️ Development

Make sure you have recent versions of Node.js and Yarn installed.

Check out the project and start a development server.

$ git clone https://github.com/buzz/newsdash.git
$ cd newsdash
$ yarn install
$ yarn client:dev
$ yarn server:dev

💌 Credits

Kudos to Netvibes and defunct iGoogle. That's where this project drew its inspiration.

The following packages are used:

License

GNU Affero General Public License v3.0

newsdash's People

Contributors

buzz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

newsdash's Issues

Grid layout not consistent after refresh

Hi,
Great project you have here. I have deployed it on my raspberry and is a great substitute to netvibes :)

I have an issue with the grid layout that is not kept after refresh. I have around 15 cells in the grid, set to 6 columns.
Some have a size of 2 (3 cells per line), some of 3 (2 cells per line) and some of 6 (1 cell per line). After a refresh, all the cells (size and place) are changed as if the table size was reduced, See attached screenshot for more details.

Thanks.
initial_state

after_refresh

Prune old data

Only a number of news items should be kept in storage.

Migrate from SASS to PostCSS?

Possible plugins

  • precss
  • sugarss
  • autoprefixer
  • cssnano

Investigate

  • postcss-nested
  • postcss-nesting
  • postcss-nested-props
  • postcss-current-selector or postcss-nested-ancestors
  • stylelint
  • postcss-cssnext
  • postcss-functions

Fix mobile display

Fix mobile display

  • Responsive grid?
  • Feed edit buttons
  • Control bar buttons

Highlight new feed items

Feed items that have been loaded since last window focus should be highlighted. Maybe having a cooldown phase where the highlighted style fades out.

Extract feed images

Sometimes there is an image tag in the content field. Extract the URL an use it as feed image.

Add app settings

Implement a app settings:

  • Feed refresh interval
  • Grid parameters

Backend proxies

Instead of relying on public services implement a backend with proxies for:

  • CORS proxy for fetching feeds
  • favicon
  • extract og:image meta tag from websites

Filter feed items

Add filter setting to feed. Filter out feed items, e.g. like category ~ "sport".

Refactor component structure

Component module hierarchy became deeply nested over time. Break it up by creating a flatter structure centered around models like components/feed, components/feedBox, etc.
Also consider a components/shared or similar for commonly used components.

Share app state across devices

As this app works serverless (and stores app state in LocalStorage for now), sharing across devices introduces a challenge.

Approaches:

  • Manually transfer serialized feed info to another machine (import/export) #8
  • Use a (free) web service to store and retrieve (partial) app state #9
  • Implement a simple backend that stores user data #33

Fade edge glitch

Fade edges show in tabbing animation when tabbing over to another feed.

Dark theme

Add a dark theme, available from options.

Feed view: List

In contrast to Condensed List this has more height per feed item row.

Feed view: Standard

The standard feed item view.

  • 2-row title
  • Image float left
  • Date row
  • 2-row teaser text (small font size)

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.